test em
This commit is contained in:
parent
daf81343bf
commit
a2b33b25f8
11 changed files with 479 additions and 55 deletions
15
tests/test_cli_app.py
Normal file
15
tests/test_cli_app.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
from typer.testing import CliRunner
|
||||
|
||||
from learn_sql_model.cli.app import app
|
||||
|
||||
runner = CliRunner()
|
||||
|
||||
|
||||
def test_cli_app_version():
|
||||
result = runner.invoke(app, ["--version"])
|
||||
assert result.exit_code == 0
|
||||
|
||||
|
||||
def test_cli_help():
|
||||
result = runner.invoke(app, ["--help"])
|
||||
assert result.exit_code == 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue