遵循以下模式:https://docs.pytest.org/en/latest/xunit_setup.html 如何在setup_method中使用/注入fixture_foo class TestClassX: # I need `fixture_foo` here
def teardown_method(self, meth
我的自动化框架使用pytest安装/teardown类型的测试,而不是固定装置。TestClass -保持实际测试我想在所有设置/删除中添加DB报告。也就是说,我希望普通的BaseClass setup_method将为测试创建一个DB条目,而teardown_method将用结果来修改条目。feature in program( test_my_feature.py)
class TestClass(my_f