2026-04-21 10:19:39 -05:00
|
|
|
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 ")
|
|
|
|
|
|
2026-04-21 13:12:08 -05:00
|
|
|
|
|
|
|
|
def test_process_help_includes_glossary_pass_flag(capsys):
|
|
|
|
|
with pytest.raises(SystemExit) as exc:
|
|
|
|
|
main(["process", "--help"])
|
|
|
|
|
|
|
|
|
|
assert exc.value.code == 0
|
|
|
|
|
assert "--glossary-max-llm-passes" in capsys.readouterr().out
|