test_an_index_from_before_the_columns_still_traces¶
Tests › tests/test_requirement_dossier_fields.py
What this test is for
Why it exists
A requirements table without the S4 columns: the trace degrades, it does not raise.
Given
db = tmp_path / "old.db"with sqlite3.connect(db) as conn: conn.execute( "CREATE TABLE requirements (id TEXT, block TEXT, title TEXT, acceptance TEXT, priority TEXT)" ) conn.execute("INSERT INTO requirements VALUES ('REQ-A-001', 'A', 'Open', '', '')")
When
t = req_trace(db, "REQ-A-001")
Then
- ✓ t.title equals "Open"
- ✓ t.status equals ""
- ✓ t.extra is None
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.
Look up one name: everything the index holds about it · 1 of 226 steps
… 17 earlier steps
… 204 later steps
2 more
- clew — `main` (clew/cli.py) · 1 of 400 steps
- `main` (scripts/export_parity.py) · 1 of 203 steps
tests/test_requirement_dossier_fields.py:67 · its file's page
What it checks (1)
assert t.title == "Open" and t.status == "" and t.extra is Noneobservesreq_traceviat
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
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.
Also reaches 5 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-QUERY-001 measured
- REQ-DDB-QUERY-003 measured
- REQ-DDB-QUERY-010 inferred
- REQ-DDB-SCHEMA-006 measured
- REQ-DDB-SCHEMA-015 measured