MusicUtils / tests /conftest.py
sathvik77's picture
fix: anchor paths to __file__, add Field validation, trigger lifespan in tests
36271b3
Raw
History Blame Contribute Delete
312 Bytes
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