Skip to content

Commit af3ca47

Browse files
committed
Test running CLI with no params
#3
1 parent 48d5a36 commit af3ca47

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/test_cli.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,14 @@ def test_version():
5858

5959
assert result.exit_code == 0
6060
assert result.output == f"OpenAPI Python Client, version {version('openapi-python-client')}\n"
61+
62+
63+
def test_no_params():
64+
from openapi_python_client.cli import cli
65+
66+
runner = CliRunner()
67+
result = runner.invoke(cli, [])
68+
69+
assert result.exit_code == 0
70+
assert "Usage" in result.output
71+

0 commit comments

Comments
 (0)