From 1183114f3a3cf1c7a13ffc9ced99e474a4d2b052 Mon Sep 17 00:00:00 2001 From: DJ Melisso Date: Sun, 14 Dec 2025 17:25:34 -0800 Subject: [PATCH] Refactor route handlers to be asynchronous and prevent coverage issues --- tests/test_additional_responses_union_duplicate_anyof.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_additional_responses_union_duplicate_anyof.py b/tests/test_additional_responses_union_duplicate_anyof.py index 95abbc457..0e2074a43 100644 --- a/tests/test_additional_responses_union_duplicate_anyof.py +++ b/tests/test_additional_responses_union_duplicate_anyof.py @@ -30,13 +30,13 @@ app = FastAPI( @app.get("/route1") -def route1(): - return "test" +async def route1(): + pass # pragma: no cover @app.get("/route2") -def route2(): - return "test" +async def route2(): + pass # pragma: no cover client = TestClient(app)