Browse Source

Update `testing.md` to use new code- include style

pull/14413/head
Yurii Motov 8 months ago
parent
commit
6eb74903a5
  1. 52
      docs/en/docs/tutorial/testing.md

52
docs/en/docs/tutorial/testing.md

@ -121,57 +121,7 @@ It has a `POST` operation that could return several errors.
Both *path operations* require an `X-Token` header. Both *path operations* require an `X-Token` header.
//// tab | Python 3.10+ {* ../../docs_src/app_testing/app_b_an_py310/main.py *}
```Python
{!> ../../docs_src/app_testing/app_b_an_py310/main.py!}
```
////
//// tab | Python 3.9+
```Python
{!> ../../docs_src/app_testing/app_b_an_py39/main.py!}
```
////
//// tab | Python 3.8+
```Python
{!> ../../docs_src/app_testing/app_b_an/main.py!}
```
////
//// tab | Python 3.10+ non-Annotated
/// tip
Prefer to use the `Annotated` version if possible.
///
```Python
{!> ../../docs_src/app_testing/app_b_py310/main.py!}
```
////
//// tab | Python 3.8+ non-Annotated
/// tip
Prefer to use the `Annotated` version if possible.
///
```Python
{!> ../../docs_src/app_testing/app_b/main.py!}
```
////
### Extended testing file { #extended-testing-file } ### Extended testing file { #extended-testing-file }

Loading…
Cancel
Save