test_a_not_run_row_names_no_call_site

Tests › tests/test_wiki_flow.py

passed Passed in the packaged run.

What this test is for

Why it exists

W-8: the folded "… N not run" row showed the call site `clew/cli.py:0`, a line that does not exist. A stub stands for several calls, so it names none.

Verifies REQ-DDB-WIKI-001 REQ-DDB-WIKI-008 REQ-DDB-WIKI-047

Given

  1. stub = SimpleNamespace(not_run=11)
  2. call = SimpleNamespace(not_run=0)
→

When

  1. _site_cell(stub, {"link": "x.html#L0", "site": "clew/cli.py:0"})
  2. _site_cell(call, {"link": "", "site": "clew/cli.py:12"})
→

Then

  1. ✓ _site_cell(stub, {"link": "x.html#L0", "site": "clew/cli.py:0"}) equals ""
  2. ✓ _site_cell(call, {"link": "", "site": "clew/cli.py:12"}) contains "clew/cli.py:12"

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

… 222 earlier steps

callercallercallercallerclew/wiki/flowpage.pyclew/wiki/flowpage.pyclew/wiki/flowpage.pyclew/wiki/flowpage.pyother filesother filesother filesother filesloop (line 290)loopbuild_wiki223–224. flow_page → test_node223test_node +1 more225. _site_cell → code225code▶ test enters226. flow_page → _badges226_badges227. _badges → page_of227page_of

… 173 later steps

tests/test_wiki_flow.py:413 · its file's page

What it checks (2)

  1. assert _site_cell(stub, {"link": "x.html#L0", "site": "clew/cli.py:0"}) == "" observes _site_cell
  2. assert "clew/cli.py:12" in _site_cell(call, {"link": "", "site": "clew/cli.py:12"}) observes _site_cell

Where the product reaches it

  • build_wiki → _build_site → flow_page → _site_cell (flow)

Call flow

test_a_not_run_row_names_no_call_site→_site_cell

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)

requirementlinked byimplementers exercised
REQ-DDB-WIKI-001catalogunknown
REQ-DDB-WIKI-008catalogunknown
REQ-DDB-WIKI-047catalogunknown