File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -7,3 +7,6 @@ strict_equality = True
77
88[mypy-stringcase]
99ignore_missing_imports = True
10+
11+ [mypy-typer]
12+ ignore_missing_imports = True
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ def cli() -> None:
1717@app .command ()
1818def generate (
1919 url : Optional [str ] = typer .Option (None , help = "A URL to read the JSON from" ),
20- path : Optional [pathlib .Path ] = typer .Option (None , help = "A path to the JSON file" )
20+ path : Optional [pathlib .Path ] = typer .Option (None , help = "A path to the JSON file" ),
2121) -> None :
2222 """ Generate a new OpenAPI Client library """
2323 if not url and not path :
Original file line number Diff line number Diff line change 55def test_generate_no_params (mocker ):
66 main = mocker .patch ("openapi_python_client.cli.main" )
77 from openapi_python_client .cli import generate
8+
89 with pytest .raises (typer .Exit ) as exc_info :
910 generate ()
1011 assert exc_info .value .exit_code == 1
@@ -14,6 +15,7 @@ def test_generate_no_params(mocker):
1415def test_generate_url_and_path (mocker ):
1516 main = mocker .patch ("openapi_python_client.cli.main" )
1617 from openapi_python_client .cli import generate
18+
1719 with pytest .raises (typer .Exit ) as exc_info :
1820 generate (url = "blah" , path = "other_blah" )
1921 assert exc_info .value .exit_code == 1
You can’t perform that action at this time.
0 commit comments