AttributeError: module 'allure' has no attribute 'severity_level' 解决

时间:2021-03-02 20:08:51   收藏:0   阅读:546

安装了 pytest-allure-adaptor 后,执行测试用例报错:AttributeError: module ‘allure‘ has no attribute ‘severity_level‘

原因:

因为之前已经安装了 allure-pytest

解决:

卸载 pytest-allure-adaptor

pip uninstall pytest-allure-adaptor
pip install allure-pytest

原文:https://www.cnblogs.com/yanlin-10/p/14470457.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!