test_an_unknown_event_role_is_refused¶
Tests › tests/test_declaration.py
What this test is for
Why it exists
FAIL CLOSED, one level below the section allow-list. Degrading a misspelled `producers:` to a default would file an emitter as a handler, and a REVERSED edge is worse than a missing one: these rows carry `declared=1` and `confidence='high'` because an author asserted them, so `chain_trace` would report causality flowing the wrong way with the strongest grading the pipeline can give.
Given
- —
When
declared_event_tags({"event_tags": {"broadcasts": "producers"}})message = str(exc.value)
Then
- ✓ raises DeclarationError
- ✓ message contains "broadcasts"
- ✓ message contains "producer"
- ✓ message contains "consumer"
tests/test_declaration.py:242 · its file's page
What it checks (2)
assert "broadcasts" in message, "the refusal must name the offending tag"not attributedassert "producer" in message and "consumer" in message, "and the allowed roles"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
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.
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-001 measured