安装了 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
因为之前已经安装了 allure-pytest
卸载 pytest-allure-adaptor
pip uninstall pytest-allure-adaptor
pip install allure-pytest