summaryrefslogtreecommitdiff
path: root/test/test_help.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_help.py')
-rw-r--r--test/test_help.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/test_help.py b/test/test_help.py
index 79a7652..0d8f2c3 100644
--- a/test/test_help.py
+++ b/test/test_help.py
@@ -1,17 +1,19 @@
"""Test help"""
+import pytest
-def test_missing_command(runner, yadm_y):
+def test_missing_command(runner, yadm_cmd):
"""Run without any command"""
- run = runner(command=yadm_y())
+ run = runner(command=yadm_cmd())
assert run.failure
assert run.err == ''
assert run.out.startswith('Usage: yadm')
-def test_help_command(runner, yadm_y):
+@pytest.mark.parametrize('cmd', ['--help', 'help'])
+def test_help_command(runner, yadm_cmd, cmd):
"""Run with help command"""
- run = runner(command=yadm_y('help'))
+ run = runner(command=yadm_cmd(cmd))
assert run.failure
assert run.err == ''
assert run.out.startswith('Usage: yadm')