test_a_requirement_has_its_own_page_with_its_whole_trace¶
Tests › tests/test_wiki_site.py
What this test is for
Why it exists
THE ACCEPTANCE TEXT LEAVES THE TABLE (owner: the drop-down was noise) and lives on the requirement's OWN PAGE with everything else that requirement links to: implementers, tests with their link kind and extent, the flows passing through its implementers, and a prefilled issue link that carries the id three ways — in the title, as a `req:` label, and as a marker line. ROUND 4, R4 (owner 2026-11-16: "Dont show things by one giant scrolling page, but individual links that are self contained"): a page per requirement replaces the modal.
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["requirements.html"]body = site["req-REQ-W-001.html"]
3 more
tests = body[body.index('class="clew req-tests') :]href = unescape( re.search(r'href="(https://github\.com/acme/demo/issues/new\?[^"]+)"', body).group(1) )query = parse_qs(urlsplit(href).query)
When
- —
Then
- ✓ page does not contain "<summary>acceptance</summary>"
- ✓ page contains 'href="req-REQ-W-001.html"'
- ✓ page does not contain '<template id="modal-req-'
- ✓ body contains "Every item is parsed once"
- ✓ body contains "src/data.py"
- ✓ body contains "test_load"
- ✓ body contains 'href="flow-load.html"'
- ✓ tests contains "test_load"
- ✓ tests contains "of 1"
- ✓ query["title"][0] contains "REQ-W-001"
- ✓ query["labels"] equals ["req:REQ-W-001"]
- ✓ query["body"][0] contains "clew-req: REQ-W-001"
tests/test_wiki_site.py:726 · its file's page
What it checks (9)
assert "<summary>acceptance</summary>" not in pagenot attributedassert 'href="req-REQ-W-001.html"' in pagenot attributedassert '<template id="modal-req-' not in pagenot attributedassert "Every item is parsed once" in bodynot attributedassert "src/data.py" in body and "test_load" in bodynot attributedassert 'href="flow-load.html"' in bodynot attributedassert "test_load" in tests and "of 1" in testsnot attributedassert "REQ-W-001" in query["title"][0] and query["labels"] == ["req:REQ-W-001"]not attributedassert "clew-req: REQ-W-001" in query["body"][0]not 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 |