mirror of
https://github.com/rjNemo/fastapi
synced 2026-06-11 04:56:41 +00:00
🌐 Fix code examples in Japanese translation for docs/ja/docs/tutorial/testing.md (#4623)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
parent
643291b9ca
commit
a38b0a7fac
1 changed files with 12 additions and 4 deletions
|
|
@ -74,16 +74,24 @@
|
||||||
|
|
||||||
これらの *path operation* には `X-Token` ヘッダーが必要です。
|
これらの *path operation* には `X-Token` ヘッダーが必要です。
|
||||||
|
|
||||||
```Python
|
=== "Python 3.6 and above"
|
||||||
{!../../../docs_src/app_testing/main_b.py!}
|
|
||||||
```
|
```Python
|
||||||
|
{!> ../../../docs_src/app_testing/app_b/main.py!}
|
||||||
|
```
|
||||||
|
|
||||||
|
=== "Python 3.10 and above"
|
||||||
|
|
||||||
|
```Python
|
||||||
|
{!> ../../../docs_src/app_testing/app_b_py310/main.py!}
|
||||||
|
```
|
||||||
|
|
||||||
### 拡張版テストファイル
|
### 拡張版テストファイル
|
||||||
|
|
||||||
次に、先程のものに拡張版のテストを加えた、`test_main_b.py` を作成します。
|
次に、先程のものに拡張版のテストを加えた、`test_main_b.py` を作成します。
|
||||||
|
|
||||||
```Python
|
```Python
|
||||||
{!../../../docs_src/app_testing/test_main_b.py!}
|
{!> ../../../docs_src/app_testing/app_b/test_main.py!}
|
||||||
```
|
```
|
||||||
|
|
||||||
リクエストに情報を渡せるクライアントが必要で、その方法がわからない場合はいつでも、`requests` での実現方法を検索 (Google) できます。
|
リクエストに情報を渡せるクライアントが必要で、その方法がわからない場合はいつでも、`requests` での実現方法を検索 (Google) できます。
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue