test_exempt_when_must_map_fields_to_lists

Tests › tests/guard/test_guard_exempt_when.py

passed Passed in the packaged run.

What this test is for

Why it exists

A string where the list belongs is refused, as everywhere in the schema.

Given

  1. —
→

When

  1. errors = _validate_node( {"exempt_when": {"responsibility": "App"}}, REQUIREMENTS_SCHEMA, "requirements" )
→

Then

  1. ✓ 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

thread startthread startthread startthread startclew/declaration.pyclew/declaration.pyclew/declaration.pyclew/declaration.pyclew/guard/config.pyclew/guard/config.pyclew/guard/config.pyclew/guard/config.pyother filesother filesother filesother filesopt (line 531)optopt (line 445)optloop (line 417)loopopt (line 420)optalt (line 421)altopt (line 533)opt_first_build_worker111. _checked_section → _checked_requirements111_checked_requirements112. _checked_requirements → _validate_node112_validate_node113–117. _validate_node → _validate_map_of113_validate_map_of +4 more118. _validate_dict_node → _suggest_key118_suggest_key119. _suggest_key → list119list120. _validate_dict_node → _validate_node120_validate_node121–122. _checked_section → _checked_tests121_checked_tests +1 more

… 20 later steps

3 more

tests/guard/test_guard_exempt_when.py:49 · its file's page

What it checks (1)

  1. assert any("exempt_when" in e and "list" in e for e in errors), errors observes _validate_node via errors

Where the product reaches it

  • build_wiki → load_wiki_config → _requirements_section → read_requirements_section → _validate_node (flow)

Call flow

test_exempt_when_must_map_fields_to_lists→_validate_node

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_exempt_when_must_map_fields_to_lists · 1 checks_validate_nodeREQ-DDB-GUARD-012 · measured
Also reaches 1 requirement

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