Add initial cli test

This commit is contained in:
Marty Oehme 2021-12-06 23:20:18 +01:00
parent 97035d8e4c
commit 2d2b4430ff
Signed by: Marty
GPG key ID: B7538B8F50A1C800
5 changed files with 12 additions and 6 deletions

0
tests/__init__.py Normal file
View file

10
tests/test_cli.py Normal file
View 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