test_without_a_declaration_nothing_is_exempt¶
Tests › tests/test_wiki_exempt.py
What this test is for
Why it exists
No guard config or no exempt_status: every untested requirement stays MISSING.
Given
evidence = [_row("R-PLANNED", "MISSING")]declared = {"R-PLANNED": {"x-status": "planned"}}
When
exempt_by_status(evidence, declared, None)exempt_by_status(evidence, declared, {"impact": {}})
Then
- ✓ exempt_by_status(evidence, declared, None)[0].tier equals "MISSING"
- ✓ exempt_by_status(evidence, declared, {"impact": {}})[0].tier equals "MISSING"
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.
`main` (clew/guard/main.py) · 1 of 357 steps
… 312 earlier steps
… 40 later steps
tests/test_wiki_exempt.py:56 · its file's page
What it checks (2)
assert exempt_by_status(evidence, declared, None)[0].tier == "MISSING"observesexempt_by_statusassert exempt_by_status(evidence, declared, {"impact": {}})[0].tier == "MISSING"observesexempt_by_status
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 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-GUARD-022 measured
- REQ-DDB-WIKI-002 measured