Skip to content

Commit bcc3bb3

Browse files
committed
test: verify overall framework metric is data-driven
1 parent 94754a9 commit bcc3bb3

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

tests/test_operational_views.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,5 +148,27 @@ def test_ruleset_non_boolean_field_rejected(self):
148148
MODULE.validate(VALID_ROADMAP, VALID_TASKS, snapshot, VALID_DECISIONS)
149149

150150

151+
def test_overall_framework_count_rendered_from_task_data(self):
152+
tasks = _copy(VALID_TASKS)
153+
modified = False
154+
for task in tasks["tasks"]:
155+
if task["status"] == "pending":
156+
task["status"] = "verified"
157+
task["commit"] = "0" * 40
158+
task["evidence"] = ["test-only-evidence.md"]
159+
modified = True
160+
break
161+
self.assertTrue(modified, "expected at least one pending task to convert")
162+
163+
roadmap = _copy(VALID_ROADMAP)
164+
snapshot = _copy(VALID_SNAPSHOT)
165+
MODULE.validate(roadmap, tasks, snapshot, VALID_DECISIONS)
166+
167+
status_text = MODULE.status_view(roadmap, tasks, snapshot)
168+
169+
self.assertIn("3 / 13 Tasks Verified\n\n## 2. Itemized Verification Checklist", status_text)
170+
self.assertNotIn("2 / 13 Tasks Verified", status_text)
171+
172+
151173
if __name__ == "__main__":
152174
unittest.main()

0 commit comments

Comments
 (0)