]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
📝 Update includes in `docs/de/docs/advanced/async-tests.md` (#12567)
authorJulio Anthony Leonard <JulioAnthonyLeonard@gmail.com>
Sun, 27 Oct 2024 15:34:47 +0000 (16:34 +0100)
committerGitHub <noreply@github.com>
Sun, 27 Oct 2024 15:34:47 +0000 (15:34 +0000)
docs/de/docs/advanced/async-tests.md

index 93ff84b8a88976551d76c07cddbb02596ea32e87..6c1981e255b2f1781268b42058b40daf4a2fb4dc 100644 (file)
@@ -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: