Skip to content

Commit 00cedf5

Browse files
committed
fix(commands/init): fix test_init_when_config_already_exists
1 parent 0a3dcd9 commit 00cedf5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/test_commands.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ def test_init_when_config_already_exists(config, capsys):
219219
path = "tests/pyproject.toml"
220220
config.add_path(path)
221221

222-
with pytest.raises(SystemExit):
223-
commands.Init(config)()
224-
captured = capsys.readouterr()
225-
assert captured.out == f"Config file {path} already exists\n"
222+
commands.Init(config)()
223+
captured = capsys.readouterr()
224+
assert captured.out == f"Config file {path} already exists\n"

0 commit comments

Comments
 (0)