test_exempt_when_must_map_fields_to_lists¶
Tests › tests/guard/test_guard_exempt_when.py
What this test is for
Why it exists
A string where the list belongs is refused, as everywhere in the schema.
Given
- —
When
errors = _validate_node( {"exempt_when": {"responsibility": "App"}}, REQUIREMENTS_SCHEMA, "requirements" )
Then
- ✓ any("exempt_when" in e and "list" in e for e in errors) holds
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.
thread `clew-first-build-` — `_first_build_worker` (clew/mcp_server/server.py) · 6 of 142 steps
… 110 earlier steps
… 20 later steps
3 more
- Build this wiki from the index · 6 of 400 steps
- clew — `main` (clew/cli.py) · 6 of 400 steps
- `main` (clew/guard/main.py) · 6 of 357 steps
tests/guard/test_guard_exempt_when.py:49 · its file's page
What it checks (1)
assert any("exempt_when" in e and "list" in e for e in errors), errorsobserves_validate_nodeviaerrors
Where the product reaches it
build_wiki→load_wiki_config→_requirements_section→read_requirements_section→_validate_node(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.
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-GUARD-012 measured