随笔分类 -  pytest

一个可以干掉unittest的框架
摘要:通过python -m pytest调用pytest 通过python解释器,在命令行执行: python -m pytest XXXX.py 几乎等同于直接pytest XXXX.py,除了通过python会将当前目录添加到sys.path中。 有可能会遇到的退出码 运行pytest可能会导致六个 阅读全文
posted @ 2020-07-07 11:25 无罪的坏人 阅读(386) 评论(0) 推荐(0)
摘要:官方介绍 https://docs.pytest.org/en/latest/example/index.html 在开始之前,我们先看一段官方文档的介绍:pytest is a framework that makes building simple and scalable tests easy 阅读全文
posted @ 2020-07-06 21:22 无罪的坏人 阅读(216) 评论(0) 推荐(0)