test_repeated_calls_fold_into_one_loop_frame¶
Tests › tests/test_wiki_flow.py
What this test is for
Why it exists
OWNER 2026-11-17 (round 5): repeated calls fold into a `loop ×N` frame. Five consecutive calls to the same function draw ONE arrow labelled ×5 inside a loop frame; the group still names every step it stands for (`data-steps`), so the step table, the step pop-ups and a replayed trace keep all five. The animation plays drawn arrows, so a fold leaves no gap.
Given
- —
When
animated = flow_svg(_repeated(), animate=True)delays = [float(d) for d in re.findall(r"animation-delay:([\d.]+)s", animated)]
Then
- ✓ re.findall(r'data-step="(\d+)"', animated) equals ["0", "5"]
- ✓ animated contains 'data-steps="0 1 2 3 4"'
- ✓ animated contains ">loop ×5<"
- ✓ animated contains ">cap ×5<"
- ✓ delays equals [0.0, STEP_SECONDS]
- ✓ animated contains ">6<"
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 · 3 of 400 steps
… 217 earlier steps
… 176 later steps
tests/test_wiki_flow.py:239 · its file's page
What it checks (5)
assert re.findall(r'data-step="(\d+)"', animated) == ["0", "5"]observesflow_svgviaanimatedassert 'data-steps="0 1 2 3 4"' in animatedobservesflow_svgviaanimatedassert ">loop ×5<" in animated and ">cap ×5<" in animatedobservesflow_svgviaanimatedassert delays == [0.0, STEP_SECONDS]not attributedassert ">6<" in animatedobservesflow_svgviaanimated
Where the product reaches it
build_wiki→_build_site→flow_page→_block→flow_svg(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 |