From eb59fa85d55d5cf6fcb7a633e8a6eea653a67f2d Mon Sep 17 00:00:00 2001 From: 0verwrite <31691645+overwrite00@users.noreply.github.com> Date: Fri, 12 Jun 2026 10:47:11 +0200 Subject: [PATCH] fix(tests): use @pytest_asyncio.fixture for async client fixture --- python/tests/conftest.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python/tests/conftest.py b/python/tests/conftest.py index 87eea03..e6e1013 100644 --- a/python/tests/conftest.py +++ b/python/tests/conftest.py @@ -5,13 +5,16 @@ sys.path.insert(0, str(Path(__file__).parent.parent)) import pytest +import pytest_asyncio from httpx import AsyncClient, ASGITransport from main import app -@pytest.fixture +@pytest_asyncio.fixture async def client(): - async with AsyncClient(transport=ASGITransport(app=app), base_url="http://test") as c: + async with AsyncClient( + transport=ASGITransport(app=app), base_url="http://test" + ) as c: yield c