test_adr_status_is_read_in_every_common_shape

Tests › tests/test_wiki_site.py

passed Passed in the packaged run.

What this test is for

Given

  1. —
→

When

  1. inline = parse_adr("0002-x.md", "# 2. X\n\nStatus: Proposed\nDate: 2026-02-01\n")
  2. section = parse_adr("0003-y.md", "# Y\n\n## Status\n\nSuperseded by 4\n")
  3. madr = parse_adr("0004-z.md", "---\nstatus: accepted\ndate: 2026-03-03\n---\n# Z\n")
→

Then

  1. ✓ (inline.number, inline.title, inline.status, inline.date) equals ( "2", "X", "Proposed", "2026-02-01", )
  2. ✓ (section.number, section.status) equals ("3", "Superseded by 4")
  3. ✓ (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

callercallercallercallerclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyother filesother filesother filesother filesbuild_wiki375. _build_site → find_decisions375find_decisions376. find_decisions → parse_adr376parse_adr377. parse_adr → _front_matter377_front_matter▶ test enters378–379. parse_adr → _file_number378_file_number +1 more380. _build_site → _fetch_issues380_fetch_issues381. _fetch_issues → provider_for381provider_for

… 19 later steps

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

What it checks (3)

  1. assert (inline.number, inline.title, inline.status, inline.date) == ( "2", "X", "Proposed", "2026-02-01", ) observes parse_adr via inline
  2. assert (section.number, section.status) == ("3", "Superseded by 4") observes parse_adr via section
  3. assert (madr.title, madr.status, madr.date) == ("Z", "accepted", "2026-03-03") observes parse_adr via madr

Where the product reaches it

  • build_wiki → _build_site → find_decisions → parse_adr (flow)

Call flow

test_adr_status_is_read_in_every_common_shape→parse_adr

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.

test_adr_status_is_read_in_every_common_shape · 3 checksparse_adrREQ-DDB-WIKI-031 · measured

Requirements it verifies (14)

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-044catalogunknown
REQ-DDB-WIKI-050catalogunknown
REQ-DDB-WIKI-052catalogunknown
Also reaches 1 requirement

Its run touches their code; that is reach, not proof.