摘要:
pytest 测试用例的识别与运行 测试文件:test_*.py 和 *_test.py 以test开头或结尾的文件 测试用例:Test*类包含的所有 test_*的方法(测试类不能带有__init__方法), 不在class中的所有test_*的方法 def func(x): return x + 阅读全文
摘要:
import requests r = requests.get("https://www.baidu.com") print(r.status_code) 阅读全文