MCPcopy Create free account
hub / github.com/CJackHwang/AIstudioProxyAPI / test_quota_exceeded_error

Function test_quota_exceeded_error

tests/models/test_exceptions.py:306–311  ·  view source on GitHub ↗

Test QuotaExceededError with extended retry.

()

Source from the content-addressed store, hash-verified

304
305
306def test_quota_exceeded_error():
307 """Test QuotaExceededError with extended retry."""
308 error = QuotaExceededError(req_id="req12")
309
310 assert error.retry_after == 3600 # 1 hour
311 assert "quota exceeded" in error.message.lower()
312
313
314def test_empty_response_error():

Callers

nothing calls this directly

Calls 1

QuotaExceededErrorClass · 0.90

Tested by

no test coverage detected