Add initial cli test
This commit is contained in:
parent
97035d8e4c
commit
2d2b4430ff
5 changed files with 12 additions and 6 deletions
0
tests/__init__.py
Normal file
0
tests/__init__.py
Normal file
10
tests/test_cli.py
Normal file
10
tests/test_cli.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import click.testing
|
||||
|
||||
from habitmove import cli
|
||||
|
||||
|
||||
def test_cli_fails_without_file():
|
||||
runner = click.testing.CliRunner()
|
||||
result = runner.invoke(cli.main)
|
||||
assert result.exit_code == 2
|
||||
assert "Missing argument" in result.output
|
||||
Loading…
Add table
Add a link
Reference in a new issue