test_an_unknown_document_key_in_an_inline_manifest_is_refused¶
Tests › tests/test_buildoptions.py
What this test is for
Why it exists
The singular/plural slip one level in: `writer:` for `writers:` is a valid mapping that no consumer reads, so the build runs entirely on built-in defaults while reporting that the statement was honoured. Same refusal `declaration.load_declaration_located` makes for a section name.
Verifies REQ-DDB-CONFIG-008
Given
- —
When
bo.apply_options( _args(), {"shared_key_patterns": {"writer": [{"name_prefix": "S_"}]}}, Path("/repo"), )message = str(caught.value)
Then
- ✓ raises bo.BuildOptionError
- ✓ message contains "'writer'"
- ✓ message contains "writers"
- ✓ message contains "readers"
tests/test_buildoptions.py:318 · its file's page
What it checks (2)
assert "'writer'" in messagenot attributedassert "writers" in message and "readers" in messagenot attributed
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_an_unknown_document_key_in_an_inline_manifest_is_refused→apply_options→_argsWhat 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 |