摘要:
一、pytest安装 pip install pytest 二、pytest的编写规则 1.测试文件以test_开头(以_test结尾也可以) 2.测试类以Test开头,并且不能带有 init 方法 3.测试函数以test_开头 4.断言使用基本的assert即可 三、pytest的运行方式--运行 阅读全文
posted @ 2021-05-16 17:31
丿adhere
阅读(193)
评论(0)
推荐(0)