habitmove/tests/test_cli.py
2021-12-06 23:20:18 +01:00

10 lines
241 B
Python

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