← mined_baseline

fastapi_9929

failed NO_PATCH NO_PATCH UNSUBMITTED empty_patch(None) · None tool calls · 0 s · fastapi/fastapi

Task input

(not found in data/tasks.jsonl)

Tool calls (0)

#ToolArgumentsResult
No trace captured.

Test output

show
==================================== ERRORS ====================================
________________________ ERROR collecting tests/main.py ________________________
tests/main.py:6: in <module>
    app = FastAPI()
          ^^^^^^^^^
fastapi/applications.py:896: in __init__
    ] = webhooks or routing.APIRouter()
                    ^^^^^^^^^^^^^^^^^^^
fastapi/routing.py:787: in __init__
    super().__init__(
E   TypeError: Router.__init__() got an unexpected keyword argument 'on_startup'
=============================== warnings summary ===============================
fastapi/applications.py:18
  /private/tmp/swe_work/mined_baseline/fastapi_9929/workspace/fastapi/applications.py:18: StarletteDeprecationWarning: 'HTTP_422_UNPROCESSABLE_ENTITY' is deprecated. Use 'HTTP_422_UNPROCESSABLE_CONTENT' instead.
    from fastapi.exception_handlers import (

fastapi/applications.py:30
  /private/tmp/swe_work/mined_baseline/fastapi_9929/workspace/fastapi/applications.py:30: StarletteDeprecationWarning: 'HTTP_422_UNPROCESSABLE_ENTITY' is deprecated. Use 'HTTP_422_UNPROCESSABLE_CONTENT' instead.
    from fastapi.openapi.utils import get_openapi

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
2 warnings, 1 error in 0.40s