TA的每日心情 | 慵懒 2016-11-1 19:27 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
class Test_case(object):
@pytest.mark.parametrize('testcasedatadict', thistestcasedata()['testcasedata'])
def test_interface(self,testcasedatadict):
print(testcasedatadict)
pytest.main(["-s","testcasedata\\testcase_exe_fun.py::Test_case::test_interface"])
pytest.main(["-s","testcasedata\\testcase_exe_fun.py::Test_case::test_interface"])
我在不关闭的进程情况下执行pytest.main改变了thistestcasedata()['testcasedata']值,然后第二次执行pytest.main还是使用了初始的thistestcasedata()['testcasedata']值,怎么多次pytest.main, @pytest.mark.parametrize('testcasedatadict', thistestcasedata()['testcasedata'])使用不同值啊
PS:进程未杀死的情况多次pytest.main |
|