()
| 25 | |
| 26 | |
| 27 | def test_status_to_class_mapping(): |
| 28 | cases = { |
| 29 | 401: E2AAuthError, |
| 30 | 403: E2APermissionError, |
| 31 | 404: E2ANotFoundError, |
| 32 | 409: E2AConflictError, |
| 33 | 422: E2AValidationError, |
| 34 | 429: E2ARateLimitError, |
| 35 | 500: E2AServerError, |
| 36 | 503: E2AServerError, |
| 37 | } |
| 38 | for status, klass in cases.items(): |
| 39 | err = from_api_exception(_exc(status, body="{}")) |
| 40 | assert isinstance(err, klass), f"{status} -> {type(err).__name__}" |
| 41 | assert err.status == status |
| 42 | |
| 43 | |
| 44 | def test_retryable_flags(): |
nothing calls this directly
no test coverage detected