test_a_bad_event_role_is_refused_not_stored¶
Tests › tests/test_buildoptions.py
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
- —
When
bo.apply_options(_args(), {"event_tags": {"broadcasts": "produce"}}, Path("/repo"))message = str(caught.value)
Then
- ✓ raises bo.BuildOptionError
- ✓ message contains "broadcasts='produce'"
- ✓ message contains "producer"
- ✓ message contains "consumer"
tests/test_buildoptions.py:131 · its file's page
What it checks (2)
assert "broadcasts='produce'" in message, "name the offending entry, not just the key"not attributedassert "producer" in message and "consumer" 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_a_bad_event_role_is_refused_not_stored→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 |