test_adr_status_is_read_in_every_common_shape¶
Tests › tests/test_wiki_site.py
What this test is for
Why it exists
P3c-2: `Status:` inline, a `## Status` section, MADR front matter.
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-044 REQ-DDB-WIKI-050 REQ-DDB-WIKI-052
Given
- —
When
inline = parse_adr("0002-x.md", "# 2. X\n\nStatus: Proposed\nDate: 2026-02-01\n")section = parse_adr("0003-y.md", "# Y\n\n## Status\n\nSuperseded by 4\n")madr = parse_adr("0004-z.md", "---\nstatus: accepted\ndate: 2026-03-03\n---\n# Z\n")
Then
- ✓ (inline.number, inline.title, inline.status, inline.date) equals ( "2", "X", "Proposed", "2026-02-01", )
- ✓ (section.number, section.status) equals ("3", "Superseded by 4")
- ✓ (madr.title, madr.status, madr.date) equals ("Z", "accepted", "2026-03-03")
What it exercises
The parts of the system's flows this test ran, measured by per-test coverage: lit steps ran in this test, dimmed ones did not, and ▶ marks where the test called in. Each title opens the whole flow with these steps lit.
Build this wiki from the index · 3 of 400 steps
… 374 earlier steps
… 19 later steps
tests/test_wiki_site.py:864 · its file's page
What it checks (3)
assert (inline.number, inline.title, inline.status, inline.date) == ( "2", "X", "Proposed", "2026-02-01", )observesparse_adrviainlineassert (section.number, section.status) == ("3", "Superseded by 4")observesparse_adrviasectionassert (madr.title, madr.status, madr.date) == ("Z", "accepted", "2026-03-03")observesparse_adrviamadr
Where the product reaches it
build_wiki→_build_site→find_decisions→parse_adr(flow)
Call flow
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 (14)
| 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-044 | catalog | unknown |
| REQ-DDB-WIKI-050 | catalog | unknown |
| REQ-DDB-WIKI-052 | catalog | unknown |
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-WIKI-031 measured