pytest执行_allure报“AttributeError: module 'allure' has no attribute 'severity_level'”

  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
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容