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_no_data _________________________________
def test_no_data():
response = client.post("/form/")
assert response.status_code == 422, response.text
> assert response.json() == IsDict(
{
"detail": [
{
"type": "missing",
"loc": ["body", "username"],
"msg": "Field required",
"input": {"tags": ["foo", "bar"], "with": "nothing"},
},
{
"type": "missing",
"loc": ["body", "lastname"],
"msg": "Field required",
"input": {"tags": ["foo", "bar"], "with": "nothing"},
},
]
}
) | IsDict(
# TODO: remove when deprecating Pydantic v1
{
"detail": [
{
"loc": ["body", "username"],
"msg": "field required",
"type": "value_error.missing",
},
{
"loc": ["body", "lastname"],
"msg": "field required",
"type": "value_error.missing",
},
]
}
)
E AssertionError: assert {'detail': [{'type': 'missing', 'loc': ['body', 'username'], 'msg': 'Field required', 'input': {'tags': ['foo', 'bar']...g', 'loc': ['body', 'lastname'], 'msg': 'Field required', 'input': {'tags': ['foo', 'bar'], 'alias_with': 'nothing'}}]} == (IsDict(detail=[{'type': 'missing', 'loc': ['body', 'username'], 'msg': 'Field required', 'input': {'tags': ['foo', 'ba...missing', 'loc': ['body', 'lastname'], 'msg': 'Field required', 'input': {'tags': ['foo', 'bar'], 'with': 'nothing'}}]) | IsDict(detail=[{'loc': ['body', 'username'], 'msg': 'field required', 'type': 'value_error.missing'}, {'loc': ['body', 'lastname'], 'msg': 'field required', 'type': 'value_error.missing'}]))
E + where {'detail': [{'type': 'missing', 'loc': ['body', 'username'], 'msg': 'Field required', 'input': {'tags': ['foo', 'bar']...g', 'loc': ['body', 'lastname'], 'msg': 'Field required', 'input': {'tags': ['foo', 'bar'], 'alias_with': 'nothing'}}]} = json()
E + where json = <Response [422 Unprocessable Entity]>.json
E + and IsDict(detail=[{'type': 'missing', 'loc': ['body', 'username'], 'msg': 'Field required', 'input': {'tags': ['foo', 'ba...missing', 'loc': ['body', 'lastname'], 'msg': 'Field required', 'input': {'tags': ['foo', 'bar'], 'with': 'nothing'}}]) = IsDict({'detail': [{'type': 'missing', 'loc': ['body', 'username'], 'msg': 'Field required', 'input': {'tags': ['foo', 'bar']...missing', 'loc': ['body', 'lastname'], 'msg': 'Field required', 'input': {'tags': ['foo', 'bar'], 'with': 'nothing'}}]})
E + and IsDict(detail=[{'loc': ['body', 'username'], 'msg': 'field required', 'type': 'value_error.missing'}, {'loc': ['body', 'lastname'], 'msg': 'field required', 'type': 'value_error.missing'}]) = IsDict({'detail': [{'loc': ['body', 'username'], 'msg': 'field required', 'type': 'value_error.missing'}, {'loc': ['body', 'lastname'], 'msg': 'field required', 'type': 'value_error.missing'}]})
tests/test_forms_single_model.py:100: AssertionError
=============================== warnings summary ===============================
../../../../../../Users/jp/repos/kaggle-gemini-coding-agent-post-training/.envs/overlays/starlette-0.38.6-py3-none-any/starlette/formparsers.py:12
/Users/jp/repos/kaggle-gemini-coding-agent-post-training/.envs/overlays/starlette-0.38.6-py3-none-any/starlette/formparsers.py:12: PendingDeprecationWarning: Please use `import python_multipart` instead.
import multipart
../../../../../../Users/jp/repos/kaggle-gemini-coding-agent-post-training/.envs/overlays/starlette-0.38.6-py3-none-any/starlette/testclient.py:40
/Users/jp/repos/kaggle-gemini-coding-agent-post-training/.envs/overlays/starlette-0.38.6-py3-none-any/starlette/testclient.py:40: DeprecationWarning: The anyio.abc.BlockingPortal alias is deprecated, use anyio.from_thread.BlockingPortal instead.
_PortalFactoryType = typing.Callable[[], typing.ContextManager[anyio.abc.BlockingPortal]]
tests/test_forms_single_model.py::test_send_all_data
/Users/jp/repos/kaggle-gemini-coding-agent-post-training/.envs/fastapi/lib/python3.13/site-packages/pydantic/_internal/_generate_schema.py:2274: UnsupportedFieldAttributeWarning: The 'alias' attribute with value 'with' was provided to the `Field()` function, which has no effect in the context it was used. 'alias' is field-specific metadata, and can only be attached to a model field using `Annotated` metadata or by assignment. This may have happened because an `Annotated` type alias using the `type` statement was used, or if the `Field()` function was attached to a single member of a union type.
warnings.warn(
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
1 failed, 3 passed, 3 warnings in 0.59s