mirror of
https://github.com/fastapi/fastapi.git
synced 2026-04-13 19:38:34 -04:00
📝 Update includes in docs/de/docs/advanced/async-tests.md (#12567)
This commit is contained in:
committed by
GitHub
parent
48f88edf0d
commit
27e7fcefe8
@@ -60,9 +60,7 @@ $ pytest
|
||||
|
||||
Der Marker `@pytest.mark.anyio` teilt pytest mit, dass diese Testfunktion asynchron aufgerufen werden soll:
|
||||
|
||||
```Python hl_lines="7"
|
||||
{!../../docs_src/async_tests/test_main.py!}
|
||||
```
|
||||
{* ../../docs_src/async_tests/test_main.py hl[7] *}
|
||||
|
||||
/// tip | "Tipp"
|
||||
|
||||
@@ -72,9 +70,7 @@ Beachten Sie, dass die Testfunktion jetzt `async def` ist und nicht nur `def` wi
|
||||
|
||||
Dann können wir einen `AsyncClient` mit der App erstellen und mit `await` asynchrone Requests an ihn senden.
|
||||
|
||||
```Python hl_lines="9-12"
|
||||
{!../../docs_src/async_tests/test_main.py!}
|
||||
```
|
||||
{* ../../docs_src/async_tests/test_main.py hl[9:12] *}
|
||||
|
||||
Das ist das Äquivalent zu:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user