Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions docs/ja/docs/tutorial/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,24 @@

これらの *path operation* には `X-Token` ヘッダーが必要です。

```Python
{!../../../docs_src/app_testing/main_b.py!}
```
=== "Python 3.6 and above"

```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` を作成します。

```Python
{!../../../docs_src/app_testing/test_main_b.py!}
{!> ../../../docs_src/app_testing/app_b/test_main.py!}
```

リクエストに情報を渡せるクライアントが必要で、その方法がわからない場合はいつでも、`requests` での実現方法を検索 (Google) できます。
Expand Down