test_a_changed_functions_flows_are_capped_product_first

Tests › tests/test_wiki_impact.py

passed Passed in the packaged run.

What this test is for

Why it exists

FOUND ON CLEW'S OWN WIKI (round 4): `_build_argparser` is on dozens of test flows, and its row listed every one. Product flows come first; at most five are listed, the rest counted. Requirements link to their own pages (R4).

Verifies REQ-DDB-WIKI-024

Given

  1. pages = [ SimpleNamespace(name=f"flow-t{i}", title=f"test {i}", role="tests") for i in range(7) ] + [SimpleNamespace(name="flow-main", title="main", role="product")]
→

When

  1. cell = _flow_cell(pages)
  2. shown, _sep, hidden = cell.partition("<details")
→

Then

  1. ✓ cell.index("flow-main") is less than cell.index("flow-t0")
  2. ✓ shown.count("<a ") equals 5
  3. ✓ hidden contains "<summary>3 more</summary>"
  4. ✓ hidden.count("<a ") equals 3

tests/test_wiki_impact.py:99 · its file's page

What it checks (3)

  1. assert cell.index("flow-main") < cell.index("flow-t0") observes _flow_cell via cell
  2. assert shown.count("<a ") == 5 and "<summary>3 more</summary>" in hidden not attributed
  3. assert hidden.count("<a ") == 3 not attributed

Where the product reaches it

No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.

Call flow

test_a_changed_functions_flows_are_capped_product_first→_flow_cell

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_a_changed_functions_flows_are_capped_product_first · 3 checks_flow_cellREQ-DDB-WIKI-029 · measured

Requirements it verifies (1)

requirementlinked byimplementers exercised
REQ-DDB-WIKI-024catalogunknown
Also reaches 1 requirement

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