feat. Enforce repo review config
This commit is contained in:
@@ -55,3 +55,28 @@ def test_format_result_comment_appends_usage_note_for_fallback_layout() -> None:
|
||||
},
|
||||
)
|
||||
assert body.endswith("_Note: model `gpt-5.3-codex`, total `88` tokens used._")
|
||||
|
||||
|
||||
def test_format_result_comment_appends_missing_config_note_for_system_layout() -> None:
|
||||
body = format_result_comment(
|
||||
"ff0011",
|
||||
{
|
||||
"verdict": "correct",
|
||||
"confidence": 0.8,
|
||||
"summary": "No issues.",
|
||||
"findings": [],
|
||||
},
|
||||
repo_configured=False,
|
||||
)
|
||||
assert body.endswith("ℹ️.codex-review.yml is not configured")
|
||||
|
||||
|
||||
def test_format_result_comment_does_not_append_missing_config_note_to_agent_markdown() -> None:
|
||||
body = format_result_comment(
|
||||
"ff0011",
|
||||
{
|
||||
"markdown_comment": "## Codex Review\n\nLooks fine.",
|
||||
},
|
||||
repo_configured=False,
|
||||
)
|
||||
assert "ℹ️.codex-review.yml is not configured" not in body
|
||||
|
||||
Reference in New Issue
Block a user