From 8d63cb405da0af345f5b22ed7841714ed1c3ec1f Mon Sep 17 00:00:00 2001 From: Swapna Lekkala Date: Thu, 13 Nov 2025 10:38:23 -0800 Subject: [PATCH] fix test --- tests/unit/server/test_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/server/test_server.py b/tests/unit/server/test_server.py index 53f193672..521d88109 100644 --- a/tests/unit/server/test_server.py +++ b/tests/unit/server/test_server.py @@ -165,13 +165,13 @@ class TestTranslateException: assert result.detail == "Internal server error: An unexpected error occurred." def test_translate_runtime_error(self): - """Test that RuntimeError is translated to 500 HTTP status.""" + """Test that RuntimeError is translated to 500 HTTP status with actual error message.""" exc = RuntimeError("Runtime error") result = translate_exception(exc) assert isinstance(result, HTTPException) assert result.status_code == 500 - assert result.detail == "Internal server error: An unexpected error occurred." + assert result.detail == "Runtime error" def test_multiple_access_denied_scenarios(self): """Test various scenarios that should result in 403 status codes."""