test_a_changed_functions_flows_are_capped_product_first¶
Tests › tests/test_wiki_impact.py
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
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
cell = _flow_cell(pages)shown, _sep, hidden = cell.partition("<details")
Then
- ✓ cell.index("flow-main") is less than cell.index("flow-t0")
- ✓ shown.count("<a ") equals 5
- ✓ hidden contains "<summary>3 more</summary>"
- ✓ hidden.count("<a ") equals 3
tests/test_wiki_impact.py:99 · its file's page
What it checks (3)
assert cell.index("flow-main") < cell.index("flow-t0")observes_flow_cellviacellassert shown.count("<a ") == 5 and "<summary>3 more</summary>" in hiddennot attributedassert hidden.count("<a ") == 3not 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
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 (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-WIKI-024 | catalog | unknown |
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-WIKI-029 measured