MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / test_retryable_flags

Function test_retryable_flags

sdks/python/tests/test_v1_errors.py:44–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42
43
44def test_retryable_flags():
45 assert from_api_exception(_exc(429, body="{}")).retryable is True
46 assert from_api_exception(_exc(500, body="{}")).retryable is True
47 assert from_api_exception(_exc(404, body="{}")).retryable is False
48 assert from_api_exception(_exc(422, body="{}")).retryable is False
49
50
51def test_idempotency_code_wins_over_status():

Callers

nothing calls this directly

Calls 2

from_api_exceptionFunction · 0.90
_excFunction · 0.85

Tested by

no test coverage detected