pytest
(2023-01-17 14:07:35)分类: python |
一、pytest用例规则
- 测试文件以test_开头(以_test结尾也可以)
- 测试类以Test开头,并且不能带有 init 方法
- 测试函数以test_开头
- 断言使用assert
前一篇:反射