13 lines
262 B
Python
13 lines
262 B
Python
import pytest
|
|
|
|
from audita.cli import main
|
|
|
|
|
|
def test_cli_help_uses_audita_program_name(capsys):
|
|
with pytest.raises(SystemExit) as exc:
|
|
main(["--help"])
|
|
|
|
assert exc.value.code == 0
|
|
assert capsys.readouterr().out.startswith("usage: audita ")
|
|
|