test_zoomed_out_blocks_and_a_legend_show_the_lens

Tests › tests/test_wiki_web.py

passed Passed in the packaged run.

What this test is for

Why it exists

OWNER MAP NOTES (2026-11-22): change impact → map showed the changed dots but nothing zoomed out, and there was no colour legend. Owner Q/A: a folded block is drawn as the active lens's status pie (sub-arcs in proportion), and a legend names each colour with its count. One category function (`cat`) serves the dots, the pies and the legend, so they cannot disagree.

Given

  1. —
→

When

  1. web_html({"nodes": [], "blocks": [], "links": []})
→

Then

  1. ✓ WEB_JS contains "function cat(n)"
  2. ✓ WEB_JS contains "function pies()"
  3. ✓ WEB_JS contains "function legend()"
  4. ✓ web_html({"nodes": [], "blocks": [], "links": []}) contains "data-web-legend"

tests/test_wiki_web.py:230 · its file's page

What it checks (2)

  1. assert ( "function cat(n)" in WEB_JS and "function pies()" in WEB_JS and "function legend()" in WEB_JS ) not attributed
  2. assert "data-web-legend" in web_html({"nodes": [], "blocks": [], "links": []}) observes web_html

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_zoomed_out_blocks_and_a_legend_show_the_lens→web_html

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.

test_zoomed_out_blocks_and_a_legend_show_the_lens · 2 checksweb_htmlREQ-DDB-WIKI-021 · measured
Also reaches 1 requirement

Its run touches their code; that is reach, not proof.