feat(task-022): expand discovery coverage

This commit is contained in:
2026-06-04 07:42:48 +01:00
parent a0b28e7d8d
commit c72ad6995e
8 changed files with 341 additions and 25 deletions
+9 -5
View File
@@ -84,11 +84,13 @@ class TestGenerateContextFiles:
mapping_path = root / "context/discovery-context-mapping.md"
assert mapping_path.exists()
def test_mapping_covers_all_10_questions(self):
"""All 10 core questions should have mappings."""
def test_mapping_covers_all_questions(self):
"""All core questions should have mappings."""
from rdb_discovery.generate_context import CONTEXT_MAP
from rdb_discovery.templates import CORE_QUESTIONS
for i in range(1, 11):
expected_count = len(CORE_QUESTIONS)
for i in range(1, expected_count + 1):
qid = f"Q-{i:03d}"
assert qid in CONTEXT_MAP, f"Missing mapping for {qid}"
@@ -194,11 +196,13 @@ class TestContentPreservation:
class TestContextMapCompleteness:
"""Tests for mapping document completeness."""
def test_all_10_questions_mapped(self):
def test_all_questions_mapped(self):
"""Every core question should have a mapping entry."""
from rdb_discovery.generate_context import CONTEXT_MAP
from rdb_discovery.templates import CORE_QUESTIONS
expected_ids = {f"Q-{i:03d}" for i in range(1, 11)}
expected_count = len(CORE_QUESTIONS)
expected_ids = {f"Q-{i:03d}" for i in range(1, expected_count + 1)}
mapped_ids = set(CONTEXT_MAP.keys())
assert expected_ids == mapped_ids, f"Missing mappings: {expected_ids - mapped_ids}"