This repository has been archived on 2024-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
Colligere/tests/test_cli.py

16 lines
312 B
Python
Raw Normal View History

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)