test_a_scenario_line_may_name_the_call_it_starts_at¶
Tests › tests/test_wiki_scenario.py
What this test is for
Why it exists
X-1 (owner review 2, 2026-11-22): "show WHAT is being built up by the sequence diagram … blocks of it can be aligned to gherkin syntax". A scenario line is text, or `{step, at}` naming the call where its part of the diagram begins.
Given
config, problems = _load( tmp_path, " - entry: dossier\n" " scenario:\n" " - Given an index\n" " - {step: When names are asked about, at: _accepted_batch}\n" " - {step: Then one reply answers them, at: _batched_dossiers}\n", )(spec,) = config.flows
When
- —
Then
- ✓ problems equals []
- ✓ spec.scenario[1] equals "When names are asked about"
- ✓ spec.scenario_at equals ("", "_accepted_batch", "_batched_dossiers")
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 · 37 of 400 steps
… 6 steps between
… 343 later steps
tests/test_wiki_scenario.py:85 · its file's page
What it checks (3)
assert problems == [], problemsnot attributedassert spec.scenario[1] == "When names are asked about"not attributedassert spec.scenario_at == ("", "_accepted_batch", "_batched_dossiers")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_scenario_line_may_name_the_call_it_starts_at→_loadWhat 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 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-GUARD-012 measured
- REQ-DDB-WIKI-054 inferred