From 9a192e565ab060f3069ae67cffaa82874c0e22ed Mon Sep 17 00:00:00 2001 From: Alexander Pushkov Date: Tue, 5 Dec 2023 13:00:15 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Make=20test=20endpoint=20names?= =?UTF-8?q?=20unique?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_dependency_contextmanager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_dependency_contextmanager.py b/tests/test_dependency_contextmanager.py index 80b368bf8..38b79e054 100644 --- a/tests/test_dependency_contextmanager.py +++ b/tests/test_dependency_contextmanager.py @@ -111,12 +111,12 @@ async def get_sync(state: str = Depends(generator_state)): @app.get("/async_ctxmgr") -async def get_async(state: str = Depends(asyncgen_state_ctxmgr)): +async def get_async_ctxmgr(state: str = Depends(asyncgen_state_ctxmgr)): return state @app.get("/sync_ctxmgr") -async def get_sync(state: str = Depends(generator_state_ctxmgr)): +async def get_sync_ctxmgr(state: str = Depends(generator_state_ctxmgr)): return state