test_the_flow_json_shape_is_in_the_manifest¶
Tests › tests/test_export.py
What this test is for
Why it exists
PS1 (owner Q/A 2026-11-19): `clew wiki flow` JSON is covered, recorded after P5's sequence changes (block lanes, the actor, loop folding, replay values) so 2.0.0 ships its final shape. A later change is additive or bumps `flow_version`.
Given
- —
When
flow = wire_manifest()["flow"]
Then
- ✓ flow["flow_version"] equals FLOW_VERSION
- ✓ {"Flow", "Lane", "Step"} is at most set(flow["types"])
- ✓ flow["types"]["Flow"] contains "actor"
- ✓ flow["types"]["Flow"] contains "lanes"
tests/test_export.py:208 · its file's page
What it checks (3)
assert flow["flow_version"] == FLOW_VERSIONobserveswire_manifestviaflowassert {"Flow", "Lane", "Step"} <= set(flow["types"])observeswire_manifestviaflowassert "actor" in flow["types"]["Flow"] and "lanes" in flow["types"]["Flow"]observeswire_manifestviaflow
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.
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-QUERY-014 measured