From: AyushSinghal1794 <89984761+AyushSinghal1794@users.noreply.github.com> Date: Sun, 10 Nov 2024 17:40:22 +0000 (+0530) Subject: 📝 Update includes in `docs/en/docs/advanced/testing-dependencies.md` (#12647) X-Git-Tag: 0.115.5~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=13892a39cd5ab34ab7c461372d053461d96f7297;p=thirdparty%2Ffastapi%2Ffastapi.git 📝 Update includes in `docs/en/docs/advanced/testing-dependencies.md` (#12647) Co-authored-by: Sebastián Ramírez --- diff --git a/docs/en/docs/advanced/testing-dependencies.md b/docs/en/docs/advanced/testing-dependencies.md index 1cc4313a1e..17b4f98145 100644 --- a/docs/en/docs/advanced/testing-dependencies.md +++ b/docs/en/docs/advanced/testing-dependencies.md @@ -28,57 +28,7 @@ To override a dependency for testing, you put as a key the original dependency ( And then **FastAPI** will call that override instead of the original dependency. -//// tab | Python 3.10+ - -```Python hl_lines="26-27 30" -{!> ../../docs_src/dependency_testing/tutorial001_an_py310.py!} -``` - -//// - -//// tab | Python 3.9+ - -```Python hl_lines="28-29 32" -{!> ../../docs_src/dependency_testing/tutorial001_an_py39.py!} -``` - -//// - -//// tab | Python 3.8+ - -```Python hl_lines="29-30 33" -{!> ../../docs_src/dependency_testing/tutorial001_an.py!} -``` - -//// - -//// tab | Python 3.10+ non-Annotated - -/// tip - -Prefer to use the `Annotated` version if possible. - -/// - -```Python hl_lines="24-25 28" -{!> ../../docs_src/dependency_testing/tutorial001_py310.py!} -``` - -//// - -//// tab | Python 3.8+ non-Annotated - -/// tip - -Prefer to use the `Annotated` version if possible. - -/// - -```Python hl_lines="28-29 32" -{!> ../../docs_src/dependency_testing/tutorial001.py!} -``` - -//// +{* ../../docs_src/dependency_testing/tutorial001_an_py310.py hl[26:27,30] *} /// tip