test_one_bad_entry_applies_nothing

Tests › tests/test_buildoptions.py

passed Passed in the packaged run.

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

  1. args = _args()
→

When

  1. bo.apply_options( args, {"entry_patterns": ["app_main"], "event_tags": {"reacts": "nonsense"}}, Path("/repo"), )
→

Then

  1. ✓ raises bo.BuildOptionError
  2. ✓ args.entry_patterns is None

tests/test_buildoptions.py:165 · its file's page

What it checks (1)

  1. assert args.entry_patterns is None, "a refused mapping must apply NOTHING" observes _args via args

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_options

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)

requirementlinked byimplementers exercised
REQ-DDB-CONFIG-008catalogunknown