generated from coulomb/repo-seed
Add quality criteria registry
This commit is contained in:
@@ -156,6 +156,32 @@ def test_compare_assessment_cli_writes_markdown_report(tmp_path):
|
||||
assert "Route LLM Requests Across Providers" in report
|
||||
|
||||
|
||||
def test_list_quality_criteria_cli_writes_json(tmp_path):
|
||||
output_path = tmp_path / "criteria.json"
|
||||
|
||||
exit_code = main(
|
||||
[
|
||||
"list-quality-criteria",
|
||||
"--output",
|
||||
str(output_path),
|
||||
"--format",
|
||||
"json",
|
||||
]
|
||||
)
|
||||
|
||||
registry = json.loads(output_path.read_text(encoding="utf-8"))
|
||||
assert exit_code == 0
|
||||
assert registry["criteria_version"] == "repo-scoping-quality-criteria/v1"
|
||||
assert {criterion["id"] for criterion in registry["criteria"]} >= {
|
||||
"RREG-QC-002",
|
||||
"RREG-QC-005",
|
||||
}
|
||||
assert all(
|
||||
criterion["deterministic_action"] != "approve"
|
||||
for criterion in registry["criteria"]
|
||||
)
|
||||
|
||||
|
||||
def test_self_assess_cli_exports_challenger_and_comparison(tmp_path):
|
||||
source = write_repo(tmp_path)
|
||||
golden_path = tmp_path / "golden.json"
|
||||
|
||||
Reference in New Issue
Block a user