test(aporia): name the unreadable-verdict cases

The parametrized bodies showed up as body0 to body4 in a failure list
This commit is contained in:
L4XB 2026-09-23 20:39:17 +02:00
parent 3105fded3f
commit 720dbc8548
No known key found for this signature in database

View file

@ -68,6 +68,7 @@ async def test_an_intervention_is_not_forwarded_unchanged(action: str):
@pytest.mark.parametrize(
"body",
[{"action": "BLOCK"}, {"action": "blocked"}, {"action": ""}, {"action": None}, {}],
ids=["BLOCK", "blocked", "empty", "null", "missing"],
)
async def test_a_verdict_it_cannot_read_is_not_taken_for_permission(body: dict[str, str | None]):
guardrail, _ = _guardrail(body)