failed NO_PATCH NO_PATCH UNSUBMITTED empty_patch(None) ยท None tool calls ยท 0 s ยท fastapi/fastapi
๐ Fix example of license identifier in documentation Fix the Apache 2.0 license identifier to be `Apache-2.0`, not `MIT` (which is NOT an Apache 2.0 license).
| # | Tool | Arguments | Result |
|---|---|---|---|
| No trace captured. | |||
.F
=================================== FAILURES ===================================
_____________________________ test_openapi_schema ______________________________
def test_openapi_schema():
response = client.get("/openapi.json")
assert response.status_code == 200, response.text
> assert response.json() == {
"openapi": "3.1.0",
"info": {
"title": "ChimichangApp",
"summary": "Deadpool's favorite app. Nuff said.",
"description": "\nChimichangApp API helps you do awesome stuff. ๐\n\n## Items\n\nYou can **read items**.\n\n## Users\n\nYou will be able to:\n\n* **Create users** (_not implemented_).\n* **Read users** (_not implemented_).\n",
"termsOfService": "http://example.com/terms/",
"contact": {
"name": "Deadpoolio the Amazing",
"url": "http://x-force.example.com/contact/",
"email": "dp@x-force.example.com",
},
"license": {
"name": "Apache 2.0",
"identifier": "Apache-2.0",
},
"version": "0.0.1",
},
"paths": {
"/items/": {
"get": {
"summary": "Read Items",
"operationId": "read_items_items__get",
"responses": {
"200": {
"description": "Successful Response",
"content": {"application/json": {"schema": {}}},
}
},
}
}
},
}
E assert {'openapi': '...': {...}}}}}}} == {'openapi': '...': {...}}}}}}}
E
E Omitting 2 identical items, use -vv to show
E Differing items:
E {'info': {'title': 'ChimichangApp', 'summary': "Deadpool's favorite app. Nuff said.", 'description': '\nChimichangApp ...** (_not implemented_).\n* **Read users** (_not implemented_).\n', 'termsOfService': 'http://example.com/terms/', ...}} != {'info': {'title': 'ChimichangApp', 'summary': "Deadpool's favorite app. Nuff said.", 'description': '\nChimichangApp ...** (_not implemented_).\n* **Read users** (_not implemented_).\n', 'termsOfService': 'http://example.com/terms/', ...}}
E Use -v to get more diff
tests/test_tutorial/test_metadata/test_tutorial001_1.py:17: AssertionError
=============================== warnings summary ===============================
../../../../../../../Users/jp/repos/kaggle-gemini-coding-agent-post-training/.envs/overlays/starlette-0.50.0-py3-none-any/starlette/testclient.py:45
/Users/jp/repos/kaggle-gemini-coding-agent-post-training/.envs/overlays/starlette-0.50.0-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 failed, 1 passed, 1 warning in 0.57s