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