Skip to content

Commit 96bd9a0

Browse files
committed
Make CLI test properly check no params condition
1 parent c7f9da1 commit 96bd9a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def test_generate_no_params(mocker):
77
from openapi_python_client.cli import generate
88

99
with pytest.raises(typer.Exit) as exc_info:
10-
generate()
10+
generate(url=None, path=None)
1111
assert exc_info.value.exit_code == 1
1212
main.assert_not_called()
1313

0 commit comments

Comments
 (0)