mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
(test) assert error raised is ExceededBudget
This commit is contained in:
parent
6235ab6687
commit
98b88163a0
1 changed files with 3 additions and 2 deletions
|
@ -190,8 +190,9 @@ def test_call_with_key_under_budget():
|
|||
|
||||
asyncio.run(test())
|
||||
except Exception as e:
|
||||
pass
|
||||
print("Got Exception", e)
|
||||
error_detail = e.detail
|
||||
assert "Authentication Error, ExceededBudget:" in error_detail
|
||||
print(vars(e))
|
||||
|
||||
|
||||
# def test_call_with_key_over_budget():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue