pytest-http
Pytest发送HTTP请求
如何使用
- 安装
pytest-http
使用pip从github安装
pip install git+https://github.com/hanzhichao/pytest-http
- 使用fixture函数: http
def test_a(http): # 所有数据
res = http.get('https://www.baidu.com')
print(res.text)
- Email:
superhin@126.com
- Blog:
博客园 韩志超
- 简书:
简书 韩志超