Skip to content

Commit 7adbadc

Browse files
authored
Tests for help CLI options (--help and -h)
1 parent 3aebfc8 commit 7adbadc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/test_cli.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,18 @@ def test_import(cli_args, monkeypatch):
761761
assert 'tmuxinator' in result.output
762762
assert 'teamocil' in result.output
763763

764+
@pytest.mark.parametrize(
765+
"cli_args",
766+
[
767+
(['--help']),
768+
(['-h']),
769+
],
770+
)
771+
def test_help(cli_args, monkeypatch):
772+
runner = CliRunner()
773+
774+
result = runner.invoke(cli.cli, cli_args)
775+
assert 'Usage: cli [OPTIONS] COMMAND [ARGS]...' in result.output
764776

765777
@pytest.mark.parametrize(
766778
"cli_args,inputs",

0 commit comments

Comments
 (0)