mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-07 02:25:34 +00:00
(test) assert correct exceptions
This commit is contained in:
@@ -97,7 +97,8 @@ def test_call_with_invalid_key():
|
||||
asyncio.run(test())
|
||||
except Exception as e:
|
||||
print("Got Exception", e)
|
||||
print(str(e))
|
||||
print(e.detail)
|
||||
assert "Authentication Error" in e.detail
|
||||
pass
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user