test_the_view_strip_has_every_view_in_order¶
Tests › tests/test_wiki_entities.py
What this test is for
Why it exists
Map · Block · Flow · Replay · Source · Tests · Reqs, a tab and a panel each.
Given
- —
When
html = quick_view(_facts())tabs = [html.split(f'data-view="{v}"', 1)[0].count("data-view=") for v in VIEWS]all(f'data-view-panel="{v}"' in html for v in VIEWS)
Then
- ✓ VIEWS equals ("map", "block", "flow", "replay", "source", "tests", "reqs")
- ✓ tabs equals sorted(tabs)
- ✓ all(f'data-view-panel="{v}"' in html for v in VIEWS) holds
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 · 9 of 400 steps
… 225 earlier steps
… 133 steps between
… 25 later steps
tests/test_wiki_entities.py:37 · its file's page
What it checks (2)
assert VIEWS == ("map", "block", "flow", "replay", "source", "tests", "reqs")not attributedassert tabs == sorted(tabs) and all(f'data-view-panel="{v}"' in html for v in VIEWS)observesall
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 3 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-WIKI-022 measured
- REQ-DDB-WIKI-048 measured
- REQ-DDB-WIKI-054 inferred