15 lines
291 B
Python
15 lines
291 B
Python
import click.testing
|
|
import pytest
|
|
|
|
from habitmove import cli
|
|
|
|
|
|
@pytest.fixture
|
|
def runner():
|
|
return click.testing.CliRunner()
|
|
|
|
|
|
def test_cli_fails_without_file(runner):
|
|
result = runner.invoke(cli.main)
|
|
assert result.exit_code == 2
|
|
assert "Missing argument" in result.output
|