mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
(test) assert correct exceptions
This commit is contained in:
parent
98b88163a0
commit
97a2798927
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue