Add code coverage gathering
This commit is contained in:
parent
2d2b4430ff
commit
09cbab9021
4 changed files with 115 additions and 4 deletions
|
|
@ -1,10 +1,15 @@
|
|||
import click.testing
|
||||
import pytest
|
||||
|
||||
from habitmove import cli
|
||||
|
||||
|
||||
def test_cli_fails_without_file():
|
||||
runner = click.testing.CliRunner()
|
||||
@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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue