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")