We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37a16da commit db7e74cCopy full SHA for db7e74c
2 files changed
src/vectorcode/subcommands/init.py
@@ -114,8 +114,6 @@ async def init(configs: Config) -> int:
114
else:
115
os.makedirs(project_config_dir, exist_ok=True)
116
for item in (
117
- "config.json5",
118
- "config.json",
119
"vectorcode.include",
120
"vectorcode.exclude",
121
):
tests/subcommands/test_init.py
@@ -88,7 +88,11 @@ async def test_init_copies_global_config(capsys):
88
89
# Assert files were copied
90
assert return_code == 0
91
- assert copyfile_mock.call_count == len(config_items)
+ assert copyfile_mock.call_count == sum(
92
+ # not copying `json`s.
93
+ "json" not in i
94
+ for i in config_items.keys()
95
+ )
96
97
# Check output messages
98
captured = capsys.readouterr()
0 commit comments