From 7cbcafbf6edc3cf93a2548612ccb7a97dc04decd Mon Sep 17 00:00:00 2001 From: Nicolas Sebastian Schuler Date: Wed, 16 Jul 2025 10:11:48 +0200 Subject: [PATCH] (fix) test case should through error only in range[400,500) --- app/test_main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/test_main.py b/app/test_main.py index e4920e9..2d3663c 100644 --- a/app/test_main.py +++ b/app/test_main.py @@ -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 + )