2021年10月28日
摘要: class Test_ClareTestClass(): def setup_class(self): self.executor = ClareTestClass(1,5) #这样的参数化,是总共执行了3次,pytest的统计结果算3个测试用例 @pytest.mark.parametrize(" 阅读全文
posted @ 2021-10-28 18:21 ClareBaby01 阅读(103) 评论(0) 推荐(0) 编辑
摘要: PytestCollectionWarning: cannot c ollect test class 'Test_ClareTestClass' because it has a __init__ constructor (from: test_ClareTestClass.py) 今天打算开始使 阅读全文
posted @ 2021-10-28 17:54 ClareBaby01 阅读(1530) 评论(0) 推荐(0) 编辑
摘要: import pytest def setup_module(): print("初始化。。。") def teardown_module(): print("清理。。。") class Test_Demo(): def test_case1(self): print("开始执行测试用例1") as 阅读全文
posted @ 2021-10-28 17:41 ClareBaby01 阅读(86) 评论(0) 推荐(0) 编辑