2018-07-11 08:50:42 -04:00
|
|
|
"""Test help"""
|
|
|
|
|
|
|
|
|
2020-11-17 15:38:31 -05:00
|
|
|
def test_missing_command(runner, yadm_cmd):
|
2018-07-11 08:50:42 -04:00
|
|
|
"""Run without any command"""
|
2020-11-17 15:38:31 -05:00
|
|
|
run = runner(command=yadm_cmd())
|
2018-07-11 08:50:42 -04:00
|
|
|
assert run.failure
|
|
|
|
assert run.err == ''
|
|
|
|
assert run.out.startswith('Usage: yadm')
|
|
|
|
|
|
|
|
|
2020-11-17 15:38:31 -05:00
|
|
|
def test_help_command(runner, yadm_cmd):
|
2018-07-11 08:50:42 -04:00
|
|
|
"""Run with help command"""
|
2020-11-17 15:38:31 -05:00
|
|
|
run = runner(command=yadm_cmd('help'))
|
2018-07-11 08:50:42 -04:00
|
|
|
assert run.failure
|
|
|
|
assert run.err == ''
|
|
|
|
assert run.out.startswith('Usage: yadm')
|