failed NO_PATCH NO_PATCH UNSUBMITTED empty_patch(None) · None tool calls · 0 s · fastapi/fastapi
(not found in data/tasks.jsonl)
| # | Tool | Arguments | Result |
|---|---|---|---|
| No trace captured. | |||
......................F
=================================== FAILURES ===================================
_____________________ test_sse_router_typed_openapi_schema _____________________
client = <starlette.testclient.TestClient object at 0x11844cd10>
def test_sse_router_typed_openapi_schema(client: TestClient):
"""Typed SSE endpoint on a router should preserve itemSchema with contentSchema."""
response = client.get("/openapi.json")
assert response.status_code == 200
paths = response.json()["paths"]
sse_response = paths["/api/events-typed"]["get"]["responses"]["200"]
> assert sse_response == {
"description": "Successful Response",
"content": {
"text/event-stream": {
"itemSchema": {
"type": "object",
"properties": {
"data": {
"type": "string",
"contentMediaType": "application/json",
"contentSchema": {"$ref": "#/components/schemas/Item"},
},
"event": {"type": "string"},
"id": {"type": "string"},
"retry": {"type": "integer", "minimum": 0},
},
"required": ["data"],
}
}
},
}
E AssertionError: assert {'description...imum': 0}}}}}} == {'description...: ['data']}}}}
E
E Omitting 1 identical items, use -vv to show
E Differing items:
E {'content': {'text/event-stream': {'itemSchema': {'type': 'object', 'properties': {'data': {'type': 'string'}, 'event': {'type': 'string'}, 'id': {'type': 'string'}, 'retry': {'type': 'integer', 'minimum': 0}}}}}} != {'content': {'text/event-stream': {'itemSchema': {'type': 'object', 'properties': {'data': {'type': 'string', 'content...t': {'type': 'string'}, 'id': {'type': 'string'}, 'retry': {'type': 'integer', 'minimum': 0}}, 'required': ['data']}}}}
E Use -v to get more diff
tests/test_sse.py:300: AssertionError
=============================== warnings summary ===============================
../../../../../../Users/jp/repos/kaggle-gemini-coding-agent-post-training/.envs/overlays/starlette-1.6.0-py3-none-any/starlette/testclient.py:53
/Users/jp/repos/kaggle-gemini-coding-agent-post-training/.envs/overlays/starlette-1.6.0-py3-none-any/starlette/testclient.py:53: DeprecationWarning: The anyio.abc.BlockingPortal alias is deprecated, use anyio.from_thread.BlockingPortal instead.
_PortalFactoryType = Callable[[], AbstractContextManager[anyio.abc.BlockingPortal]]
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
1 failed, 22 passed, 1 warning in 0.79s