test_the_29148_attributes_and_extra_are_served

Tests › tests/test_requirement_dossier_fields.py

passed Passed in the packaged run.

What this test is for

Why it exists

All four attributes, and the unmapped key under `extra`.

Given

  1. —
→

When

  1. t = req_trace(_db(tmp_path), "REQ-A-001")
→

Then

  1. ✓ (t.status, t.rationale, t.verification, t.parent) equals ( "approved", "Callers need a handle.", "test", "REQ-SYS-001", )
  2. ✓ t.extra equals {"x-owner": "platform"}

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

callercallercallercallerclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/recovery.pyclew/query/recovery.pyclew/query/recovery.pyclew/query/recovery.pydossier18. _documentation_mentions → table_exists18table_exists19. _documentation_mentions → has_columns19has_columns20. has_columns → table_exists20table_exists▶ test enters21–22. _hint_from → _name_exists21_name_exists +1 more

… 204 later steps

3 more

tests/test_requirement_dossier_fields.py:48 · its file's page

What it checks (2)

  1. assert (t.status, t.rationale, t.verification, t.parent) == ( "approved", "Callers need a handle.", "test", "REQ-SYS-001", ) observes req_trace via t
  2. assert t.extra == {"x-owner": "platform"} observes req_trace via t

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

test_the_29148_attributes_and_extra_are_served→req_trace→_db

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_29148_attributes_and_extra_are_served · 2 checks_dbingest_requirements_yamlresolve_catalog_columnsREQ-DDB-CONFIG-001 · measured_dbingest_requirements_yaml_is_flat_req_listREQ-DDB-CONFIG-003 · measuredreq_traceREQ-DDB-QUERY-001 · measuredreq_tracetable_existsREQ-DDB-QUERY-003 · measuredreq_trace_req_implementersresolve_rowidREQ-DDB-QUERY-010 · inferredreq_trace_req_failure_modesREQ-DDB-SCHEMA-006 · measuredreq_trace_req_linksREQ-DDB-SCHEMA-015 · measured_dbingest_requirements_yaml_is_flat_req_listallREQ-DDB-WIKI-054 · inferred
Also reaches 8 requirements

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