From db2213ac5e9e8cf98face43c20ab5a6bcc3687cc Mon Sep 17 00:00:00 2001 From: Zach Fuller Date: Sat, 2 Mar 2024 13:17:09 -0700 Subject: [PATCH] updated test server to return 500 response on GET /exception --- tests/bin/test_server/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/bin/test_server/server.py b/tests/bin/test_server/server.py index 58b1da2..bab89cf 100644 --- a/tests/bin/test_server/server.py +++ b/tests/bin/test_server/server.py @@ -15,5 +15,5 @@ async def post_foo(request: Request) -> Response: @get("/exception") -async def mock_exception(): - raise Exception("Mock exception") +async def mock_exception() -> Response: + return Response(500, content=b"Internal Server Error")