Skip to content

Commit 337e0e2

Browse files
committed
Test that CLI callback exists
Closes #3
1 parent c0ea66d commit 337e0e2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_cli.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
import typer
33

44

5+
def test_callback():
6+
from openapi_python_client.cli import cli
7+
8+
cli()
9+
10+
511
def test_generate_no_params(mocker):
612
main = mocker.patch("openapi_python_client.cli.main")
713
from openapi_python_client.cli import generate

0 commit comments

Comments
 (0)