mirror of
https://github.com/R0m1k3/Reviflow.git
synced 2026-10-12 01:36:31 +02:00
13 lines
280 B
Python
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
|