()
| 37 | |
| 38 | |
| 39 | def 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 | |
| 49 | def test_classifies_405_html_as_endpoint_method_mismatch(): |
nothing calls this directly
no test coverage detected