![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
黄昏贩卖机
这个作者很懒,什么都没留下…
展开
-
PDB python内置调试器
以下内容来自一个示例程序。原创 2023-06-09 12:36:06 · 79 阅读 · 0 评论 -
python unit test pytest
pytest --capture=:指定输出方式,例如 pytest --capture=sys 将使用标准输出,pytest --capture=tee-sys 则同时将输出保存到文件和标准输出。运行测试:在项目目录下运行 pytest 命令来运行测试。pytest -k :运行包含表达式 的测试用例,例如 pytest -k “add” 将运行所有名称中包含 add 的测试用例。pytest --maxfail=:指定最大失败数,例如 pytest --maxfail=2 将在第二个失败后停止测试。原创 2023-03-29 21:38:30 · 365 阅读 · 0 评论