test: fix test

This commit is contained in:
Krrish Dholakia 2024-07-18 22:05:10 -07:00
parent d42963a0ae
commit db3063d3d3

View file

@ -75,8 +75,8 @@ def test_chat_completion_exception(client):
print("ERROR=", json_response["error"]) print("ERROR=", json_response["error"])
assert isinstance(json_response["error"]["message"], str) assert isinstance(json_response["error"]["message"], str)
assert ( 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 # make an openai client to call _make_status_error_from_response