python - Pycharm Pytest 并行测试错误'E 夹具'驱动程序'未找到'任何人都可以帮助解决这个问题吗?
问题描述
def test_login(驱动程序):找不到 E 夹具“驱动程序”
available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatc
h、pytestconfig、record_property、record_testsuite_property、record_xml_attribute、recwarn、testrun_uid、tmp_path、tmp_path_factory、tmpdir、tmpdir_factory、worker_id
use 'pytest --fixtures [testpath]' for help on them.
我有驱动程序的 pytest 夹具设置,但我不知道如何解决这个问题?
解决方案
尽管我确实对此感到有些愚蠢,但它可能对其他人有所帮助,所以我所做的是将“conftest.py”文件命名为“comftest.py”,并使用不正确的“m”或正确的“n” !现在我的“pytest -n 2”命令正在 Pycharm 的终端上运行。
推荐阅读
- amazon-web-services - 为多个区域 api 网关使用 terraform 模块
- android - 通过另一个适配器访问一个适配器的数据
- ms-word - 格式化Word的方式,以便在距页面边框给定距离处出现一行?
- r - “进行选择”框未出现在串扰中
- android - 奥利奥不显示通知
- python - Matplotlib,折线图中的线条过于拥挤
- stored-procedures - 链表:存储的元素没有完全显示
- php - 如果某些索引与 php 匹配,则将数组添加到另一个数组中
- grails - grails 2 应用程序中是否兼容最新的 spring 安全版本?
- c - 如何在显示最终合并排序数组之前打印左右子数组?