摘要:
在之前的学习中,代码中一直是传入了fixture函数common_driver,又使用了pytest.mark.usefixtures: @pytest.mark.usefixtures("common_driver") def test_welcome(self, common_driver): 阅读全文
摘要:
之前遇到了很多次类似的问题,即pytest加载conftest.py的时候报如下的错误 我的目录结构是这样的: APP_AutoTest/ |- TestCases/ |- __init__.py |- conftest.py |- test_login.py |- test_welcome.py 阅读全文