test_the_svg_carries_each_steps_lines_for_lighting¶
Tests › tests/test_wiki_activity.py
What this test is for
Why it exists
`data-l` per step, a loop back edge, an accessible label, no script.
Given
- —
When
svg = activity_svg(steps_of(_PY.splitlines(), "src/m.py", 20), "load")
Then
- ✓ svg.count('class="step ') equals 7
- ✓ svg contains 'data-l="25-25"'
- ✓ svg contains 'class="loop-back"'
- ✓ svg contains 'aria-label="activity of load: 7 steps"'
- ✓ svg does not contain "<script"
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 · 11 of 400 steps
… 273 earlier steps
… 8 steps between
… 97 later steps
tests/test_wiki_activity.py:64 · its file's page
What it checks (3)
assert svg.count('class="step ') == 7 and 'data-l="25-25"' in svgobservesactivity_svgviasvgassert 'class="loop-back"' in svg and 'aria-label="activity of load: 7 steps"' in svgobservesactivity_svgviasvgassert "<script" not in svgobservesactivity_svgviasvg
Where the product reaches it
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.
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-WIKI-045 measured