摘要:
class Test_ClareTestClass(): def setup_class(self): self.executor = ClareTestClass(1,5) #这样的参数化,是总共执行了3次,pytest的统计结果算3个测试用例 @pytest.mark.parametrize(" 阅读全文
摘要:
PytestCollectionWarning: cannot c ollect test class 'Test_ClareTestClass' because it has a __init__ constructor (from: test_ClareTestClass.py) 今天打算开始使 阅读全文
摘要:
import pytest def setup_module(): print("初始化。。。") def teardown_module(): print("清理。。。") class Test_Demo(): def test_case1(self): print("开始执行测试用例1") as 阅读全文