From db3063d3d3ce0330ebbe95a6d6ce366826e5e9f7 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Thu, 18 Jul 2024 22:05:10 -0700 Subject: [PATCH] test: fix test --- litellm/tests/test_proxy_exception_mapping.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/tests/test_proxy_exception_mapping.py b/litellm/tests/test_proxy_exception_mapping.py index 4fb1e7134..07ae7f5a8 100644 --- a/litellm/tests/test_proxy_exception_mapping.py +++ b/litellm/tests/test_proxy_exception_mapping.py @@ -75,8 +75,8 @@ def test_chat_completion_exception(client): print("ERROR=", json_response["error"]) assert isinstance(json_response["error"]["message"], str) assert ( - json_response["error"]["message"] - == "litellm.AuthenticationError: AuthenticationError: OpenAIException - Incorrect API key provided: bad-key. You can find your API key at https://platform.openai.com/account/api-keys." + "litellm.AuthenticationError: AuthenticationError: OpenAIException - Incorrect API key provided: bad-key. You can find your API key at https://platform.openai.com/account/api-keys." + in json_response["error"]["message"] ) # make an openai client to call _make_status_error_from_response