mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
(test) assert correct exceptions
This commit is contained in:
parent
4df3bfac12
commit
39d5af5c85
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