failed NO_PATCH NO_PATCH UNSUBMITTED empty_patch(None) ยท None tool calls ยท 0 s ยท fastapi/fastapi
๐ Update docs for responses and new stream with `yield` ๐ Update docs for responses and new stream with `yield`
| # | Tool | Arguments | Result |
|---|---|---|---|
| No trace captured. | |||
..F
=================================== FAILURES ===================================
____ test_stream_image[tutorial002_py310-/image/stream-no-async-yield-from] ____
mod = <module 'docs_src.stream_data.tutorial002_py310' from '/private/tmp/swe_work/baseline_full_v2/fastapi_15023/b/workspace/docs_src/stream_data/tutorial002_py310.py'>
client = <starlette.testclient.TestClient object at 0x10379df90>
path = '/image/stream-no-async-yield-from'
@pytest.mark.parametrize(
"path",
[
"/image/stream",
"/image/stream-no-async",
"/image/stream-no-async-yield-from",
"/image/stream-no-annotation",
"/image/stream-no-async-no-annotation",
],
)
def test_stream_image(mod, client: TestClient, path: str):
response = client.get(path)
> assert response.status_code == 200
E assert 404 == 200
E + where 404 = <Response [404 Not Found]>.status_code
tests/test_tutorial/test_stream_data/test_tutorial002.py:36: 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, 2 passed, 1 warning in 0.51s