(fix) test case should through error only in range[400,500)

This commit is contained in:
Nicolas Sebastian Schuler
2025-07-16 10:11:48 +02:00
parent 9644cc7fe9
commit 7cbcafbf6e

View File

@@ -66,4 +66,6 @@ async def test_forward_notification_failure():
transport=ASGITransport(app=app), base_url="http://test"
) as ac:
response = await ac.post("/notification", json=req)
assert not response.status_code == 204, description
assert response.status_code >= 400 and response.status_code < 500, (
description
)