failed NO_PATCH NO_PATCH UNSUBMITTED empty_patch(None) · None tool calls · 0 s · fastapi/fastapi
🔒️ Add `strict_content_type` checking for JSON requests 🔒️ Add `strict_content_type` checking for JSON requests
| # | Tool | Arguments | Result |
|---|---|---|---|
| No trace captured. | |||
==================================== ERRORS ====================================
__________ ERROR collecting tests/test_strict_content_type_nested.py ___________
tests/test_strict_content_type_nested.py:8: in <module>
inner_strict = APIRouter(prefix="/strict", strict_content_type=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E TypeError: APIRouter.__init__() got an unexpected keyword argument 'strict_content_type'
=============================== warnings summary ===============================
../../../../../../../Users/jp/repos/kaggle-gemini-coding-agent-post-training/.envs/overlays/starlette-0.52.1-py3-none-any/starlette/testclient.py:45
/Users/jp/repos/kaggle-gemini-coding-agent-post-training/.envs/overlays/starlette-0.52.1-py3-none-any/starlette/testclient.py:45: 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 warning, 1 error in 0.55s