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

Function test_classifies_model_endpoint_mismatch

tests/errors_test.py:39–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37
38
39def test_classifies_model_endpoint_mismatch():
40 error = classify_error(
41 '{"error":{"message":"模型 nano-banana-pro 不支持 /v1/chat/completions 接口"}}'
42 )
43
44 assert error.code == "MODEL_ENDPOINT_MISMATCH"
45 assert error.retryable is False
46 assert error.status == 400
47
48
49def test_classifies_405_html_as_endpoint_method_mismatch():

Callers

nothing calls this directly

Calls 1

classify_errorFunction · 0.90

Tested by

no test coverage detected