Files
Reviflow/backend/tests/conftest.py
T

13 lines
280 B
Python

import pytest
from httpx import AsyncClient
from app.main import app
@pytest.fixture(scope="session")
def anyio_backend():
return "asyncio"
@pytest.fixture(scope="module")
async def client():
async with AsyncClient(app=app, base_url="http://test") as c:
yield c