add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

28
pages.zh/common/pytest.md Normal file
View File

@@ -0,0 +1,28 @@
# pytest
> 运行 Python 测试。
> 更多信息:<https://docs.pytest.org/>.
- 从特定文件运行测试:
`pytest {{path/to/test_file1.py path/to/test_file2.py ...}}`
- 运行名称匹配特定 [k] 关键字表达式的测试:
`pytest -k {{expression}}`
- 一旦测试失败或遇到错误立即退出:
`pytest --exitfirst`
- 运行匹配或排除标记的测试:
`pytest -m {{marker_name1 and not marker_name2}}`
- 运行直到测试失败,从最后一个失败的测试继续:
`pytest --stepwise`
- 运行测试时不捕获输出:
`pytest --capture=no`