Pytest学习-yaml+parametrize接口实战
原创
©著作权归作者所有:来自51CTO博客作者我的事说来话长的原创作品,请联系作者获取转载授权,否则将追究法律责任
首先,废话不是冗长的,直接去代码
[En]
First, the nonsense is not wordy, go directly to the code
@pytest.mark.parametrize("mobile, appkey", get_data["mobile_belong_get"])def test_mobile(mobile, appkey): r = requests.get('https://api.binstd.com/shouji/query', params={ "shouji": mobile, "appkey": appkey }) print(r.status_code) assert r.status_code == 200 print(r.json()) print("zhou")
二、yaml数据
- 赞
- 收藏
- 评论
- *举报
上一篇:Pytest学习-yaml+parametrize使用
Original: https://blog.51cto.com/u_15626734/5551242
Author: 我的事说来话长
Title: Pytest学习-yaml+parametrize接口实战
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/504409/
转载文章受原作者版权保护。转载请注明原作者出处!