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