From 8296742ce8b49f941e18987fe1e61fc5c5292400 Mon Sep 17 00:00:00 2001 From: Lorhan Sohaky Date: Tue, 19 Jul 2022 21:05:08 -0300 Subject: [PATCH] Improve code coverage --- tests/test_custom_openapi_subapp.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/test_custom_openapi_subapp.py b/tests/test_custom_openapi_subapp.py index 191f87f76..7b20af864 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"]