📝 Add documentation about async tests (pytest-asyncio and httpx) (#1619)

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
Felix Böhm
2020-08-08 20:01:18 +02:00
committed by GitHub
parent d15556b152
commit 2fd28434dd
9 changed files with 134 additions and 0 deletions

View File

View File

@@ -0,0 +1,8 @@
import pytest
from docs_src.async_tests.test_main import test_root
@pytest.mark.asyncio
async def test_async_testing():
await test_root()