1
0
Fork 0
mirror of synced 2024-11-05 01:08:59 -05:00
yadm/test/test_help.py
Tim Byrne 62b109ad2d
Rename yadm_y -> yadm_cmd
-Y is no longer used when running commands
2020-11-22 17:09:44 -06:00

17 lines
437 B
Python

"""Test help"""
def test_missing_command(runner, yadm_cmd):
"""Run without any command"""
run = runner(command=yadm_cmd())
assert run.failure
assert run.err == ''
assert run.out.startswith('Usage: yadm')
def test_help_command(runner, yadm_cmd):
"""Run with help command"""
run = runner(command=yadm_cmd('help'))
assert run.failure
assert run.err == ''
assert run.out.startswith('Usage: yadm')