test_a_requirement_has_its_own_page_with_its_whole_trace

Tests › tests/test_wiki_site.py

passed Passed in the packaged run.

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

  1. page = site["requirements.html"]
  2. body = site["req-REQ-W-001.html"]
3 more
  1. tests = body[body.index('class="clew req-tests') :]
  2. href = unescape( re.search(r'href="(https://github\.com/acme/demo/issues/new\?[^"]+)"', body).group(1) )
  3. query = parse_qs(urlsplit(href).query)
→

When

  1. —
→

Then

  1. ✓ page does not contain "<summary>acceptance</summary>"
  2. ✓ page contains 'href="req-REQ-W-001.html"'
  3. ✓ page does not contain '<template id="modal-req-'
  4. ✓ body contains "Every item is parsed once"
  5. ✓ body contains "src/data.py"
  6. ✓ body contains "test_load"
  7. ✓ body contains 'href="flow-load.html"'
  8. ✓ tests contains "test_load"
  9. ✓ tests contains "of 1"
  10. ✓ query["title"][0] contains "REQ-W-001"
  11. ✓ query["labels"] equals ["req:REQ-W-001"]
  12. ✓ query["body"][0] contains "clew-req: REQ-W-001"

tests/test_wiki_site.py:726 · its file's page

What it checks (9)

  1. assert "<summary>acceptance</summary>" not in page not attributed
  2. assert 'href="req-REQ-W-001.html"' in page not attributed
  3. assert '<template id="modal-req-' not in page not attributed
  4. assert "Every item is parsed once" in body not attributed
  5. assert "src/data.py" in body and "test_load" in body not attributed
  6. assert 'href="flow-load.html"' in body not attributed
  7. assert "test_load" in tests and "of 1" in tests not attributed
  8. assert "REQ-W-001" in query["title"][0] and query["labels"] == ["req:REQ-W-001"] not attributed
  9. assert "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)

requirementlinked byimplementers exercised
REQ-DDB-WIKI-011catalogunknown
REQ-DDB-WIKI-012catalogunknown
REQ-DDB-WIKI-013catalogunknown
REQ-DDB-WIKI-014catalogunknown
REQ-DDB-WIKI-015catalogunknown
REQ-DDB-WIKI-018catalogunknown
REQ-DDB-WIKI-020catalogunknown
REQ-DDB-WIKI-021catalogunknown
REQ-DDB-WIKI-022catalogunknown
REQ-DDB-WIKI-023catalogunknown
REQ-DDB-WIKI-025catalogunknown
REQ-DDB-WIKI-031catalogunknown
REQ-DDB-WIKI-044catalogunknown
REQ-DDB-WIKI-050catalogunknown
REQ-DDB-WIKI-052catalogunknown