✨ Add support for Trio via AnyIO (#3372)

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

No files matched your search

+1 -1
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("/")