02-pytest运行用例
对应的视频教程:https://www.bilibili.com/video/BV1py4y1t7bJ?p=4 # 默认规则 模块名必须以 test_开头或者_test 结尾 测试类必须以 Test 开头,并且不能有 init 方法 测试方法必须以 test 开头 # 运行方式 主函数模式 命令行模式 通过读取 pytest.ini 配置文件运行 # 主函数模式 运行所有 test_login.pyimport pytestclass Test_login: def test_C001001(self): print('\ncaseC001001') assert...
more...