Code: Select all
@pytest.fixture
async def async_client():
"""Create an async client for testing"""
async with AsyncClient(
transport=ASGITransport(app=app), base_url="http://test"
) as ac:
yield ac
Code: Select all
@pytest.fixture
async def async_client():
"""Create an async client for testing"""
async with AsyncClient(
transport=ASGITransport(app=app), base_url="http://test"
) as ac:
yield ac