habitmove/tests/test_cli.py

11 lines
241 B
Python
Raw Normal View History

2021-12-06 22:20:18 +00:00
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