Skip to content

Commit ba5b035

Browse files
committed
docs: update pytest documentation links for clarity and accuracy
1 parent 0855b64 commit ba5b035

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

document/06-testing.en.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,10 @@ This demonstrates writing code with testing in mind.
239239

240240
**:book: Reference**
241241

242-
(EN)[pytest: helps you write better programs — pytest documentation](https://docs.pytest.org/en/stable/)
243-
(EN)pytest fixtures: explicit, modular, scalable — pytest documentation
244-
(EN)Parametrizing fixtures and test functions — pytest documentation
242+
- (EN)[pytest: helps you write better programs — pytest documentation](https://docs.pytest.org/en/stable/)
243+
- (EN)[pytest fixtures: explicit, modular, scalable — pytest documentation](https://docs.pytest.org/en/6.2.x/fixture.html)
244+
- (EN)[Parametrizing fixtures and test functions — pytest documentation](https://docs.pytest.org/en/stable/how-to/parametrize.html)
245+
245246

246247
While Python has the standard unittest library built-in for testing, the **pytest** library is widely used to write more flexible and readable tests. pytest comes with a simple API and powerful features, and can be easily installed with `pip install pytest`. You can run tests with the `$ pytest` command.
247248

document/06-testing.ja.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,12 @@ func TestSayHelloWithTime(t *testing.T) {
236236
### Python
237237

238238
Pythonにおけるテスト戦略
239+
239240
**:book: Reference**
240241

241-
(EN)[pytest: helps you write better programs — pytest documentation](https://docs.pytest.org/en/stable/)
242-
(EN)pytest fixtures: explicit, modular, scalable — pytest documentation
243-
(EN)Parametrizing fixtures and test functions — pytest documentation
242+
- (EN)[pytest: helps you write better programs — pytest documentation](https://docs.pytest.org/en/stable/)
243+
- (EN)[pytest fixtures: explicit, modular, scalable — pytest documentation](https://docs.pytest.org/en/6.2.x/fixture.html)
244+
- (EN)[Parametrizing fixtures and test functions — pytest documentation](https://docs.pytest.org/en/stable/how-to/parametrize.html)
244245

245246
Pythonにはtest用のライブラリとして標準搭載されているunittestがありますが、より柔軟で可読性の高いテストを書くために**pytest**というライブラリが広く利用されています。pytestはシンプルなAPIと強力な機能を備えており、`pip install pytest`で簡単にインストールできます。`$ pytest`コマンドでテストを実行することができます。
246247

@@ -412,7 +413,7 @@ Goには様々なモックライブラリがありますが、今回は `gomock`
412413
- モックを満たすためにinterfaceを用いていますが、interfaceのメリットについて考えてみましょう
413414
- モックを利用するメリットとデメリットについて考えてみましょう
414415

415-
### Python
416+
### Python (Read Only)
416417

417418
**:book: Reference**
418419

0 commit comments

Comments
 (0)