test_every_page_carries_the_minimap_with_its_components_lit¶
Tests › tests/test_wiki_site.py
What this test is for
Why it exists
CROSS-TALK (owner 2026-11-15): the sidebar holds the system's block diagram on every page; a flow page lights the components its steps pass through, and each box opens that component on the map.
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
for name in ("index.html", "requirements.html"): assert '<nav class="minimap"' not in site[name], nameflow = site["flow-load.html"]lit = re.findall(r'\.minimap \[data-comp="([^"]+)"\]', flow)
When
- —
Then
- ✓ site["flow-load.html"] contains '<nav class="minimap"'
- ✓ lit equals ["src"]
- ✓ re.search(r'href="map\.html#b=\d+"[^>]*data-comp="src"', flow) holds
- ✓ re.search(r'data-comp="src"[^>]*>.*?<span class="mm-name">src</span>', flow, re.S) holds
tests/test_wiki_site.py:655 · its file's page
What it checks (5)
assert '<nav class="minimap"' in site["flow-load.html"]not attributedassert '<nav class="minimap"' not in site[name], namenot attributedassert lit == ["src"]not attributedassert re.search(r'href="map\.html#b=\d+"[^>]*data-comp="src"', flow)not attributedassert re.search(r'data-comp="src"[^>]*>.*?<span class="mm-name">src</span>', flow, re.S)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 |