摘要: pytest 测试用例的识别与运行 测试文件:test_*.py 和 *_test.py 以test开头或结尾的文件 测试用例:Test*类包含的所有 test_*的方法(测试类不能带有__init__方法), 不在class中的所有test_*的方法 def func(x): return x + 阅读全文
posted @ 2021-12-09 18:21 feifei_tian 阅读(28) 评论(0) 推荐(0) 编辑
摘要: import requests r = requests.get("https://www.baidu.com") print(r.status_code) 阅读全文
posted @ 2021-12-09 17:57 feifei_tian 阅读(21) 评论(0) 推荐(0) 编辑