![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
小张小迪
这个作者很懒,什么都没留下…
展开
-
单体测试遇到的问题-持续更新
1、get() missing 1 required positional argument: 'data' 需要self.driver = webdriver.Firefox()原创 2021-05-28 19:49:37 · 139 阅读 · 13 评论 -
基于python3的HTMLTestRunner.py
"""A TestRunner for use with the Python unit testing framework. Itgenerates a HTML report to show the result at a glance.The simplest way to use this is to invoke its main method. E.g. import unittest import HTMLTestRunner ... define you.原创 2021-05-27 12:41:41 · 311 阅读 · 0 评论 -
HTMLTestRunner 生成测试报告文档
1、Unittests in 1、选择Edit Configurations...... 2、删除Unittestsxx所有测试 3、将py文件添加到python下。添加方式 选中python,点击+号,选择python。在script path选择对应位置点击OK。即可运行HTMLTestRunner2、AttributeError: type object '_io.StringIO' has no attribute 'StringI...原创 2021-05-27 12:40:21 · 1315 阅读 · 0 评论 -
Pycharm typo PEP 8
1、file-settings-搜索 typo-取消effects的选中状态2、PEP 8 PEP 8: no newline at end of file 解决方法:代码末尾需要另起一行,光标移到最后回车即可 PEP 8: indentation is not a multiple of four 解决方法:缩进不是4的倍数,检查缩进 PEP 8: over-indented 解决方法:过度缩进,检查缩进 PEP 8: missing whitespace a原创 2021-05-26 11:34:27 · 138 阅读 · 0 评论 -
0703-python ready go
发送请求 -> 获取数据 -> 解析数据 -> 存储数据原创 2019-07-03 16:56:27 · 100 阅读 · 0 评论