2.pytest执行_allure报“AttributeError: module 'allure' has no attribute 'severity_level'”
开始以为是allure的版本不对、环境配置问题、severity_level有这相同的项目名、安装allure失败;做一系列排查。
反复操作几次,而且确认无误。人都疯了,原因与allure-pytest依赖包产生冲突了。
切记:弄完后一定要重启,才起效。
pip install pytest-allure-adapotr
pip uninstall pytest-allure-adaptor
参考:https://blog.csdn.net/weixin_42047023/article/details/118161395
参考:https://www.cnblogs.com/cuitang/p/16529202.html
pytest执行_allure报“AttributeError: module 'allure' has no attribute 'severity_level'”
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
相关阅读更多精彩内容
- 如果过程中报错AttributeError: module 'allure' has no attribute '...
- 如果过程中报错AttributeError: module 'allure' has no attribute '...
- 问题现象在使用selenium+ pytest测试框架,执行自动化测试用例报错,命令行提示:“INTERNALER...
- 最近想玩下人脸识别功能,就开始了漫长的爬坑之路,今记录如下,方便后人快速爬坑。 首先本人解决该问题参考了前辈jes...
- 参考:https://blog.csdn.net/lt326030434/article/details/8929...