diff --git a/tests/test_custom_openapi_subapp.py b/tests/test_custom_openapi_subapp.py index 191f87f761..7b20af8648 100644 --- a/tests/test_custom_openapi_subapp.py +++ b/tests/test_custom_openapi_subapp.py @@ -10,11 +10,6 @@ sub_app = FastAPI( ) -@sub_app.get("/items/") -async def read_items(): - return {"id": "foo"} - - @sub_app.get("/openapi.json") async def openapi( # Custom Deps @@ -38,4 +33,4 @@ def test_sub_app_open_api(): assert response.status_code == 200, response.json() assert response.headers["content-type"] == "application/json" paths = list(response.json()["paths"].keys()) - assert paths == ["/sub_app/items/", "/sub_app/openapi.json"] + assert paths == ["/sub_app/openapi.json"]