from collections.abc import AsyncIterator import httpx import pytest from app.config import Settings from app.main import create_app from app.store import MonitorStore @pytest.fixture async def client() -> AsyncIterator[httpx.AsyncClient]: app = create_app(settings=Settings(), store=MonitorStore()) transport = httpx.ASGITransport(app=app) async with httpx.AsyncClient(transport=transport, base_url="http://test") as value: yield value