test_a_flow_spec_animates_by_default_and_can_opt_out¶
Tests › tests/test_wiki_flow.py
What this test is for
Why it exists
`animate:` in a flow entry is a known key; absent means animated.
Given
(tmp_path / ".clew.yaml").write_text( "wiki:\n flows:\n - entry: a\n - entry: b\n animate: false\n" )
When
config, problems = load_wiki_config(tmp_path)
Then
- ✓ problems equals []
- ✓ [f.animate for f in config.flows] equals [True, False]
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_flow.py:184 · its file's page
What it checks (2)
assert problems == []not attributedassert [f.animate for f in config.flows] == [True, False]not attributed
Where the product reaches it
build_wiki→load_wiki_config(flow)
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 (3)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-WIKI-001 | catalog | unknown |
| REQ-DDB-WIKI-008 | catalog | unknown |
| REQ-DDB-WIKI-047 | catalog | unknown |
Also reaches 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-GUARD-012 measured
- REQ-DDB-WIKI-054 inferred