Compare commits

...
Author SHA1 Message Date
praisonai-triage-agent[bot]andMervin Praison b618104e85 test: exercise live standardise entrypoint help surface
Closes the Greptile test-gap by invoking standardise_command directly
and asserting the argparse help surface exposes check/report/fix/init,
instead of only checking module attributes.

Co-authored-by: Mervin Praison <[email protected]>
2026-08-13 12:39:53 +00:00
@@ -1,8 +1,20 @@
"""Regression tests for the live standardise CLI surface."""
import pytest
from praisonai.cli.commands import standardise
def test_standardise_module_exposes_only_the_live_cli_entrypoint():
assert callable(standardise.standardise_command)
assert not hasattr(standardise, "register_click_commands")
def test_standardise_command_exposes_help_surface(capsys):
with pytest.raises(SystemExit) as excinfo:
standardise.standardise_command(["--help"])
assert excinfo.value.code == 0
help_output = capsys.readouterr().out
for subcommand in ("check", "report", "fix", "init"):
assert subcommand in help_output