test_a_brief_is_plain_text_not_doxygen_xml

Tests › tests/test_wiki_entities.py

passed Passed in the packaged run.

What this test is for

Why it exists

FOUND BY LOOKING: the quick view printed `<para>…</para>`. Briefs are read through `strip_xml`, as the step modal's are.

Verifies REQ-DDB-WIKI-048

Given

  1. db = tmp_path / "b.db"
  2. conn = sqlite3.connect(db)
  3. conn.executescript( "CREATE TABLE path (rowid INTEGER PRIMARY KEY, name TEXT);" "CREATE TABLE memberdef (rowid INTEGER PRIMARY KEY, name TEXT, kind TEXT, file_id INT," " bodyfile_id INT, briefdescription TEXT);" "INSERT INTO path VALUES (1, 'pkg/a.py');" "INSERT INTO memberdef VALUES (1, 'f', 'function', 1, 1, '<para>Hold a lock. </para>');" )
→

When

  1. _briefs(conn)
→

Then

  1. ✓ _briefs(conn) equals {("f", "pkg/a.py"): "Hold a lock."}

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

… 327 earlier steps

callercallercallercallerclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyother filesother filesother filesother filesbuild_wiki328. _test_definitions → table_exists328table_exists329. test_pages → _briefs329_briefs330. _briefs → strip_xml330strip_xml▶ test enters331–332. test_pages → load_modes331load_modes +1 more

… 68 later steps

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

What it checks (1)

  1. assert _briefs(conn) == {("f", "pkg/a.py"): "Hold a lock."} observes _briefs

Where the product reaches it

  • build_wiki → _build_site → test_pages → _briefs (flow)

Call flow

test_a_brief_is_plain_text_not_doxygen_xml→_briefs

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_a_brief_is_plain_text_not_doxygen_xml · 1 checks_briefsstrip_xmlREQ-DDB-QUERY-003 · measured

Requirements it verifies (1)

requirementlinked byimplementers exercised
REQ-DDB-WIKI-048catalogunknown
Also reaches 1 requirement

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