()
| 25 | |
| 26 | |
| 27 | def test_classifies_proxy_unavailable(): |
| 28 | error = classify_error( |
| 29 | "ProxyError('Unable to connect to proxy', " |
| 30 | "NewConnectionError('<urllib3.connection.HTTPSConnection object>: " |
| 31 | "Failed to establish a new connection: [Errno 61] Connection refused'))" |
| 32 | ) |
| 33 | |
| 34 | assert error.code == "PROXY_UNAVAILABLE" |
| 35 | assert error.retryable is True |
| 36 | assert error.status == 400 |
| 37 | |
| 38 | |
| 39 | def test_classifies_model_endpoint_mismatch(): |
nothing calls this directly
no test coverage detected