https://github.com/Tiiiger/SGC
我想运行上面的代码,但是我的pycharm环境中存在一些问题,我工作了两天,但没有找到原因。
我重新安装了相关的库,但是它不起作用。
问题显示为:
测试从22:51开始...
/ home / rhu / anaconda3 / bin / python“ /media/rhu/pycharm/pycharm-community-2018.3.6/helpers/pycharm/_jb_pytest_runner.py” --path“ / media / rhu / SGC / SGC- master / citation.py”
在/ media / rhu / SGC / SGC-master中使用参数/media/rhu/SGC/SGC-master/citation.py启动pytest
=============================测试会话开始================ ===============
平台linux-Python 3.6.8,pytest-5.3.2,py-1.8.0,pluggy-0.13.1
rootdir:/ media / rhu / SGC / SGC-master
插件:allure-pytest-2.8.6,remotedata-0.2.1收集了1条
citation.py E
测试设置失败
文件/media/rhu/SGC/SGC-master/citation.py,第60行
def test_regression(模型,test_features,test_labels):
找不到E夹具“模型”
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.
/media/rhu/SGC/SGC-master/citation.py:60 [100%]
===================================错误=========== ========================
______________________设置test_regression _______________________时出错
文件/media/rhu/SGC/SGC-master/citation.py,第60行
def test_regression(模型,test_features,test_labels):
找不到E夹具“模型”
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.
/media/rhu/SGC/SGC-master/citation.py:60
=============================== 1.45秒内出现1个错误============ ====================
以退出代码0结束的过程