![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
自动化测试
px551
这个作者很懒,什么都没留下…
展开
-
模块pytest_check出错:PytestAssertRewriteWarning: Module already imported so cannot be rewritten
使用Pytest框架做自动化测试时,使用Pytest_check模块进行断言,但是运行时会提示一个错误,如下所示:============================== warnings summary ===============================..\venv\lib\site-packages\_pytest\config\__init__.py:1114 C:\Users\Administrator\Desktop\jiekou\venv\lib\site-packag原创 2020-12-16 16:36:31 · 4267 阅读 · 2 评论 -
Pytest报告添加描述时报错:AttributeError: ‘TestReport‘ object has no attribute ‘description‘
Pytest报告添加描述时报错AttributeError: 'TestReport' object has no attribute 'description'AttributeError: ‘TestReport’ object has no attribute ‘description’在conftest文件增加报告描述,如下:@pytest.mark.optionalhookdef pytest_html_results_table_header(cells): cells.inse原创 2020-12-10 14:59:15 · 5397 阅读 · 7 评论