摘要:
1、fixture依赖其他fixture 添加了 @pytest.fixture,如果 fixture 还想依赖其他 fixture,需要用函数传参的方式,不能用 @pytest.mark.usefixtures() 的方式,否则会不生效。 1、创建test_fixture3.py文件 脚本代码: 阅读全文
posted @ 2021-10-19 17:57
AllTests软件测试
阅读(143)
评论(0)
推荐(0)
摘要:
1、error和failed区别 1、在测试用例里面断言失败,结果为failed。 创建test_fixture_failed.py文件 脚本代码: #!/usr/bin/env python # -*- coding: utf-8 -*- """ 微信公众号:AllTests软件测试 """ im 阅读全文
posted @ 2021-10-19 17:18
AllTests软件测试
阅读(184)
评论(0)
推荐(0)

浙公网安备 33010602011771号