MCPcopy
hub / github.com/HisMax/RedInk / test_classifies_proxy_unavailable

Function test_classifies_proxy_unavailable

tests/errors_test.py:27–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25
26
27def 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
39def test_classifies_model_endpoint_mismatch():

Callers

nothing calls this directly

Calls 1

classify_errorFunction · 0.90

Tested by

no test coverage detected