test_every_advertised_entry_key_is_accepted_by_its_own_schema¶
Tests › tests/test_buildoptions.py
What this test is for
Why it exists
The structural half. The `releases` hole was a key the LOADER read and the SCHEMA refused; this checks the reverse direction across every section at once — a key advertised in a schema that the schema's own validator then rejects.
Verifies REQ-DDB-CONFIG-008
Given
- —
When
for key, schema in bo.MANIFEST_SCHEMAS.items(): document: dict[str, object] = {} for entry_schema in schema.entries: ## Every allowed key, with a value whose TYPE cannot be the thing under test. document[entry_schema.list_key] = [dict.fromkeys(entry_schema.allowed, "x")] for doc_key in schema.document: document.setdefault(doc_key, []) assert bo._checked_document(key, document) is not None, ( f"section {key!r} advertises a key its own validator rejects" )
Then
- —
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) · 2 of 142 steps
… 123 earlier steps
… 13 later steps
2 more
- clew — `main` (clew/cli.py) · 2 of 400 steps
- Build this wiki from the index · 1 of 400 steps
tests/test_buildoptions.py:579 · its file's page
What it checks (1)
assert bo._checked_document(key, document) is not None, ( f"section {key!r} advertises a key its own validator rejects" )observes_checked_document
Where the product reaches it
main→propose_main→propose→build_context→load_declaration→load_declaration_located→_checked_sections→_checked_section→check_manifest_document→_checked_document(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.
Requirements it verifies (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-CONFIG-008 | catalog | unknown |