Skip to content

Commit

Permalink
fix test_call_with_end_user_over_budget
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaan-jaff committed May 30, 2024
1 parent ec35393 commit 6f06315
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions litellm/tests/test_key_generate_prisma.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ async def test():
asyncio.run(test())
except Exception as e:
error_detail = e.message
assert "Budget has been exceeded" in error_detail
assert "Authentication Error, ExceededBudget:" in error_detail
print(vars(e))


Expand Down Expand Up @@ -559,7 +559,7 @@ async def return_body():
asyncio.run(test())
except Exception as e:
error_detail = e.message
assert "Budget has been exceeded" in error_detail
assert "Budget has been exceeded! Current" in error_detail
print(vars(e))


Expand Down Expand Up @@ -648,7 +648,7 @@ async def test():
error_detail = e.message
else:
error_detail = traceback.format_exc()
assert "Budget has been exceeded" in error_detail
assert "Authentication Error, ExceededBudget:" in error_detail
print(vars(e))


Expand Down Expand Up @@ -726,7 +726,7 @@ async def test():
asyncio.run(test())
except Exception as e:
error_detail = e.message
assert "Budget has been exceeded" in error_detail
assert "Authentication Error, ExceededBudget:" in error_detail
print(vars(e))


Expand Down Expand Up @@ -823,7 +823,7 @@ async def test():
asyncio.run(test())
except Exception as e:
error_detail = e.message
assert "Budget has been exceeded" in error_detail
assert "Authentication Error, ExceededBudget:" in error_detail
print(vars(e))


Expand Down

0 comments on commit 6f06315

Please sign in to comment.