test_a_requirement_page_draws_its_evidence_chain¶
Tests › tests/test_wiki_site.py
What this test is for
Why it exists
OWNER (round 5, P5.4): the requirement's evidence as a diagram — implementers → tests → result. Edges come from the row's `extent` (which implementers each test exercises), so a drawn line is a measured or tagged link, never a guess. REQ-W-001: `test_load` passed and exercises `load`.
Verifies REQ-DDB-WIKI-011 REQ-DDB-WIKI-012 REQ-DDB-WIKI-013 REQ-DDB-WIKI-014 REQ-DDB-WIKI-015 REQ-DDB-WIKI-018 REQ-DDB-WIKI-020 REQ-DDB-WIKI-021 REQ-DDB-WIKI-022 REQ-DDB-WIKI-023 REQ-DDB-WIKI-025 REQ-DDB-WIKI-031 REQ-DDB-WIKI-044 REQ-DDB-WIKI-050 REQ-DDB-WIKI-052
Given
page = site["req-REQ-W-001.html"]svg = page[page.index('<svg class="req-evidence"') :]svg = svg[: svg.index("</svg>")]
When
- —
Then
- ✓ svg contains 'role="img"'
- ✓ svg contains "aria-label="
- ✓ svg contains ">load</text>"
- ✓ svg contains ">test_load</text>"
- ✓ svg contains ">passed</text>"
- ✓ svg contains 'data-edge="test_load→load"'
tests/test_wiki_site.py:1005 · its file's page
What it checks (3)
assert 'role="img"' in svg and "aria-label=" in svgnot attributedassert ">load</text>" in svg and ">test_load</text>" in svg and ">passed</text>" in svgnot attributedassert 'data-edge="test_load→load"' in svgnot attributed
What it reaches
Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.
Requirements it verifies (15)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-WIKI-011 | catalog | unknown |
| REQ-DDB-WIKI-012 | catalog | unknown |
| REQ-DDB-WIKI-013 | catalog | unknown |
| REQ-DDB-WIKI-014 | catalog | unknown |
| REQ-DDB-WIKI-015 | catalog | unknown |
| REQ-DDB-WIKI-018 | catalog | unknown |
| REQ-DDB-WIKI-020 | catalog | unknown |
| REQ-DDB-WIKI-021 | catalog | unknown |
| REQ-DDB-WIKI-022 | catalog | unknown |
| REQ-DDB-WIKI-023 | catalog | unknown |
| REQ-DDB-WIKI-025 | catalog | unknown |
| REQ-DDB-WIKI-031 | catalog | unknown |
| REQ-DDB-WIKI-044 | catalog | unknown |
| REQ-DDB-WIKI-050 | catalog | unknown |
| REQ-DDB-WIKI-052 | catalog | unknown |