test_a_bad_event_role_is_refused_not_stored

Tests › tests/test_buildoptions.py

passed Passed in the packaged run.

What this test is for

Why it exists

THE QUIET LEVEL. `{"broadcasts": "produce"}` is a valid mapping, so without this check the build succeeds, the bus stays undeclared, and the gh#320 diagnostics report `broadcasts` as an unclaimed alias while the caller believes they claimed it — a disagreement between two surfaces with nothing to explain it.

Verifies REQ-DDB-CONFIG-008

Given

  1. —
→

When

  1. bo.apply_options(_args(), {"event_tags": {"broadcasts": "produce"}}, Path("/repo"))
  2. message = str(caught.value)
→

Then

  1. ✓ raises bo.BuildOptionError
  2. ✓ message contains "broadcasts='produce'"
  3. ✓ message contains "producer"
  4. ✓ message contains "consumer"

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

What it checks (2)

  1. assert "broadcasts='produce'" in message, "name the offending entry, not just the key" not attributed
  2. assert "producer" in message and "consumer" in message not 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_a_bad_event_role_is_refused_not_stored→apply_options→_args

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