pytest运行报错pluggy._manager.PluginValidationError: unknown hook ‘pytest_namespace’ in plugin <module ‘allure.pytest_plugin’
问题一:python和pytest的版本不统一
- 我的python是3.9 pytest是4.0.2,于是报rt的错
下载6.1.2版本的pytest
pytest pytest==6.1.2 -i https://pypi.tuna.tsinghua.edu.cn/simple
再次运行pytest,发现不报namespace的错误了,报另一个错
pytest运行报错nknown hook ‘pytest_namespace’ in plugin <module ‘allure.pytest_plugin’
问题二:修改工具
- 卸载pytest-allure-adaptor 安装allure-pytest
pip uninstall pytest-allure-adaptor
pip install allure-pytest -i https://pypi.tuna.tsinghua.edu.cn/simple


被折叠的 条评论
为什么被折叠?



