16 lines
312 B
Python
16 lines
312 B
Python
![]() |
from colligere.cli import parse
|
||
|
|
||
|
|
||
|
def assert_out(capsys, msg, *args):
|
||
|
try:
|
||
|
parse(args)
|
||
|
except SystemExit:
|
||
|
pass
|
||
|
stdout = capsys.readouterr().out
|
||
|
assert msg in stdout
|
||
|
|
||
|
|
||
|
def test_helps(capsys):
|
||
|
for args in [["-h"], ["analize", "-h"]]:
|
||
|
assert_out(capsys, "usage:", *args)
|