test_the_view_strip_has_every_view_in_order

Tests › tests/test_wiki_entities.py

passed Passed in the packaged run.

What this test is for

Why it exists

Map · Block · Flow · Replay · Source · Tests · Reqs, a tab and a panel each.

Given

  1. —
→

When

  1. html = quick_view(_facts())
  2. tabs = [html.split(f'data-view="{v}"', 1)[0].count("data-view=") for v in VIEWS]
  3. all(f'data-view-panel="{v}"' in html for v in VIEWS)
→

Then

  1. ✓ VIEWS equals ("map", "block", "flow", "replay", "source", "tests", "reqs")
  2. ✓ tabs equals sorted(tabs)
  3. ✓ all(f'data-view-panel="{v}"' in html for v in VIEWS) holds

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 · 9 of 400 steps

… 225 earlier steps

callercallercallercallerclew/wiki/symbols.pyclew/wiki/symbols.pyclew/wiki/symbols.pyclew/wiki/symbols.pyclew/wiki/flowpage.pyclew/wiki/flowpage.pyclew/wiki/flowpage.pyclew/wiki/flowpage.pyother filesother filesother filesother filesloop (line 290)loopbuild_wiki226. flow_page → _badges226_badges227. _badges → page_of227page_of228. page_of → _key228_key229. flow_page → code229code230. flow_page → symbol_href230symbol_href

… 133 steps between

callercallercallercallerclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyother filesother filesother filesother filesloop (line 193)looploop (line 195)loopopt (line 202)optbuild_wiki364. modal → modal_template364modal_template365. write_quick_views → quick_view365quick_view366. quick_view → _map366_map▶ test enters367–373. quick_view → _list367_list +6 more374. write_quick_views → plural374plural375. _build_site → find_decisions375find_decisions

… 25 later steps

tests/test_wiki_entities.py:37 · its file's page

What it checks (2)

  1. assert VIEWS == ("map", "block", "flow", "replay", "source", "tests", "reqs") not attributed
  2. assert tabs == sorted(tabs) and all(f'data-view-panel="{v}"' in html for v in VIEWS) observes all

Where the product reaches it

  • dossier → _rank_enum_over_mirror → _class_side_is_only_enum_mirrors → all (flow)
  • build_wiki → _build_site → write_quick_views → quick_view (flow)

Call flow

test_the_view_strip_has_every_view_in_order→quick_view→_facts→all

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_the_view_strip_has_every_view_in_order · 2 checksquick_view_reqspage_ofREQ-DDB-WIKI-022 · measuredquick_viewREQ-DDB-WIKI-048 · measuredallREQ-DDB-WIKI-054 · inferred
Also reaches 3 requirements

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