mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +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())
|
asyncio.run(test())
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pass
|
error_detail = e.detail
|
||||||
print("Got Exception", e)
|
assert "Authentication Error, ExceededBudget:" in error_detail
|
||||||
|
print(vars(e))
|
||||||
|
|
||||||
|
|
||||||
# def test_call_with_key_over_budget():
|
# def test_call_with_key_over_budget():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue