Skip to content

Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.

test(generation): a template page names no model (#2711)

Swati Ahuja28f6d039da43
diff --git a/tests/integration/test_generation_pipeline.py b/tests/integration/test_generation_pipeline.py
index cc634ca0e..0a2166be2 100644
--- a/tests/integration/test_generation_pipeline.py
+++ b/tests/integration/test_generation_pipeline.py
@@ -406,9 +406,10 @@ class TestGenerationPipeline:
f"Duplicate page IDs found: {[i for i in ids if ids.count(i) > 1]}"
)
- def test_all_pages_have_model_name(self, pipeline_result):
+ def test_model_name_only_on_model_written_pages(self, pipeline_result):
+ # A template page made no model call, so it names no model.
for page in pipeline_result["pages"]:
- assert page.model_name
+ assert bool(page.model_name) == (page.provider_name != "template")
def test_all_pages_provider_is_mock(self, pipeline_result):
# LLM pages use the mock provider; the deterministic coverage tail