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

Function test_upstream_error_defaults

tests/models/test_exceptions.py:288–293  ·  view source on GitHub ↗

Test UpstreamError default status and retry.

()

Source from the content-addressed store, hash-verified

286
287
288def test_upstream_error_defaults():
289 """Test UpstreamError default status and retry."""
290 error = UpstreamError("Upstream issue")
291
292 assert error.http_status == 502
293 assert error.retry_after == 10
294
295
296def test_ai_studio_error():

Callers

nothing calls this directly

Calls 1

UpstreamErrorClass · 0.90

Tested by

no test coverage detected