Loading...
Loading...
Diagnose and fix failing pytest tests in the pplx-sdk project, following existing test patterns and conventions.
npx skill4agent add pv-udpv/pplx-sdk test-fixpytest tests/<file> -vpytest-asynciopytest-httpxHTTPXMockpytest-httpxtests/conftest.pymock_auth_tokenmock_context_uuidmock_frontend_uuidmock_backend_uuidtest_<what>_<behavior>test_http_transport_auth_error# AuthenticationError is a TransportError which is a PerplexitySDKError
with pytest.raises(AuthenticationError) as exc_info:
transport.request("GET", "/api/test")
assert exc_info.value.status_code == 401| Symptom | Likely Cause | Fix |
|---|---|---|
| Module restructured | Update import path |
| Model field renamed | Check |
| URL or method mismatch | Verify mock URL matches request |
| Exception type changed | Use |