Add support for Trio via AnyIO (#3372)

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
Thomas Grainger
2021-10-06 16:32:11 +01:00
committed by GitHub
parent 4d26fa5c54
commit 11d0a08acd
15 changed files with 49 additions and 167 deletions

View File

@@ -4,7 +4,7 @@ from httpx import AsyncClient
from .main import app
@pytest.mark.asyncio
@pytest.mark.anyio
async def test_root():
async with AsyncClient(app=app, base_url="http://test") as ac:
response = await ac.get("/")