File size: 312 Bytes
0d0fd8d
36271b3
0d0fd8d
 
 
 
 
 
36271b3
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import pytest
from asgi_lifespan import LifespanManager
from httpx import AsyncClient, ASGITransport
from main import app


@pytest.fixture
async def client():
    async with LifespanManager(app):
        async with AsyncClient(transport=ASGITransport(app=app), base_url="http://test") as c:
            yield c