test(test_proxy_exception_mapping.py): fix test

This commit is contained in:
Krrish Dholakia 2024-02-12 16:25:35 -08:00
parent 1a452057af
commit 456ce692df

View file

@ -139,7 +139,7 @@ def test_exception_openai_bad_model(client):
response=response response=response
) )
print("Type of exception=", type(openai_exception)) print("Type of exception=", type(openai_exception))
assert isinstance(openai_exception, openai.NotFoundError) assert isinstance(openai_exception, openai.BadRequestError)
except Exception as e: except Exception as e:
pytest.fail(f"LiteLLM Proxy test failed. Exception {str(e)}") pytest.fail(f"LiteLLM Proxy test failed. Exception {str(e)}")