Python Pycharm Pytest并行测试错误';E固定装置';驱动程序&x27;未找到';有人能帮忙解决这个问题吗?

Python Pycharm Pytest并行测试错误';E固定装置';驱动程序&x27;未找到';有人能帮忙解决这个问题吗?,python,pycharm,pytest,driver,fixtures,Python,Pycharm,Pytest,Driver,Fixtures,def测试单元登录(驱动程序): 未找到设备“驱动程序” h、 pytestconfig、record_属性、record_testsuite_属性、record_xml_属性、recwarn、testrun_uid、tmp_路径、, tmp_路径_工厂、tmpdir、tmpdir_工厂、工人id 我为driver设置了pytest fixture,但我不确定如何实现这一点?虽然我确实觉得这有点愚蠢,但它可能会帮助其他人,因此我所做的是将“conftest.py”文件命名为“comftest.p

def测试单元登录(驱动程序): 未找到设备“驱动程序”

h、 pytestconfig、record_属性、record_testsuite_属性、record_xml_属性、recwarn、testrun_uid、tmp_路径、, tmp_路径_工厂、tmpdir、tmpdir_工厂、工人id


我为driver设置了pytest fixture,但我不确定如何实现这一点?

虽然我确实觉得这有点愚蠢,但它可能会帮助其他人,因此我所做的是将“conftest.py”文件命名为“comftest.py”,并使用不正确的“m”或正确的“n”! 现在,我的'pytest-n2'命令正在Pycharm中的终端上运行。

请您给出更清楚的答案
  available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatc
  use 'pytest --fixtures [testpath]' for help on them.