Python 关于pycharm中pytest的几个问题

Python 关于pycharm中pytest的几个问题,python,pycharm,pytest,fixtures,Python,Pycharm,Pytest,Fixtures,我想运行上面的代码,但我的pycharm环境中存在一些问题,我为此工作了两天,没有找到原因 我重新安装了相关的库,但它不起作用 问题如下: 测试在22:51开始 /home/rhu/anaconda3/bin/python“/media/rhu/pycharm/pycharm-community-2018.3.6/helpers/pycharm/_jb_pytest_runner.py”--路径“/media/rhu/SGC/SGC master/引文.py” 在/media/rhu/SGC/S

我想运行上面的代码,但我的pycharm环境中存在一些问题,我为此工作了两天,没有找到原因

我重新安装了相关的库,但它不起作用

问题如下:

测试在22:51开始

/home/rhu/anaconda3/bin/python“/media/rhu/pycharm/pycharm-community-2018.3.6/helpers/pycharm/_jb_pytest_runner.py”--路径“/media/rhu/SGC/SGC master/引文.py”

在/media/rhu/SGC/SGC-master/引文中使用参数/media/rhu/SGC/SGC-master/引文.py启动pytest

===========================================测试会话开始==============================

平台linux——Python 3.6.8、pytest-5.3.2、py-1.8.0、Plugy-0.13.1

rootdir:/media/rhu/SGC/SGC master

插件:allure-pytest-2.8.6,remotedata-0.2.1收集的1项

引文

测试设置失败

文件/media/rhu/SGC/SGC master/引文.py,第60行

def test_回归(模型、test_特征、test_标签):

未找到E夹具“模型”

/媒体/rhu/SGC/SGC硕士/引文。py:60 [100%]

===================================================错误====================================

______________________设置测试回归时出错_______________________

文件/media/rhu/SGC/SGC master/引文.py,第60行

def test_回归(模型、test_特征、test_标签):

未找到E夹具“模型”

/媒体/rhu/SGC/SGC硕士/引文。py:60

=======================================================3.45秒内出现1个错误===============================


退出代码为0的进程已完成,可能是由于路径问题,请参见此答案-抱歉,我在网站中遵循此方法,我认为这不是问题,因为这些代码可以在jupyter中运行,而不会出现任何问题。
  available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory

  use 'pytest --fixtures [testpath]' for help on them.
  available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory

  use 'pytest --fixtures [testpath]' for help on them.