原文:httprunner 3运行报错AttributeError: module 'allure' has no attribute 'severity_level'

很多查询结果都是先卸载pytest allure adaptor,然后再安装allure pytest 尝试了好几次,仍然报错AttributeError: module allure has no attribute severity level 因为在pycharm中用的python版本是 . ,所以也没怀疑是python版本问题,后来在终端验证python版本,默认是 . . 可能是pyth ...

2020-07-23 14:14 0 1031 推荐指数:

查看详情

运行pytest,报错"AttributeError: 'module' object has no attribute 'xxx'"

最近学习pytest被此问题困扰,敲脑壳,实在是不该。百度解决方法一大堆,我的问题怎么也解决不了,来看一下,我是怎么解决的,各位大佬勿喷,只是自己做笔记用,谢谢。 报错信息如下: 网上解决方法是这样的: 1. 命名py脚本时,不要与python预留字,模块名等相同 2. 删除 ...

Mon Sep 23 00:12:00 CST 2019 0 380
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM