(test) assert error raised is ExceededBudget

This commit is contained in:
ishaan-jaff 2024-01-16 19:59:18 -08:00
parent 6235ab6687
commit 98b88163a0

View file

@ -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():