test_one_bad_entry_applies_nothing¶
Tests › tests/test_buildoptions.py
What this test is for
Why it exists
A half-applied policy builds with a mixture of what the caller stated and what they did not, and reports success. Iteration order makes this a real risk rather than a theoretical one: the valid key here is accepted FIRST, so a loop that assigned as it went would leave it set.
Verifies REQ-DDB-CONFIG-008
Given
args = _args()
When
bo.apply_options( args, {"entry_patterns": ["app_main"], "event_tags": {"reacts": "nonsense"}}, Path("/repo"), )
Then
- ✓ raises bo.BuildOptionError
- ✓ args.entry_patterns is None
tests/test_buildoptions.py:165 · its file's page
What it checks (1)
assert args.entry_patterns is None, "a refused mapping must apply NOTHING"observes_argsviaargs
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_one_bad_entry_applies_nothing→_args→apply_optionsWhat 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 |