test_a_brief_is_plain_text_not_doxygen_xml¶
Tests › tests/test_wiki_entities.py
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
db = tmp_path / "b.db"conn = sqlite3.connect(db)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
_briefs(conn)
Then
- ✓ _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
… 68 later steps
tests/test_wiki_entities.py:75 · its file's page
What it checks (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
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 (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-WIKI-048 | catalog | unknown |
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-QUERY-003 measured