mirror of
https://github.com/TheLocehiliosan/yadm
synced 2024-10-27 20:34:27 +00:00
62b109ad2d
-Y is no longer used when running commands
18 lines
437 B
Python
18 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')
|