Pytest学习-yaml+parametrize接口实战

Pytest学习-yaml+parametrize接口实战

原创

我的事说来话长博主文章分类:Pytest ©著作权

文章标签 pytest 文章分类 Python 后端开发

©著作权归作者所有:来自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")

Pytest学习-yaml+parametrize接口实战

二、yaml数据

Pytest学习-yaml+parametrize接口实战
  • 收藏
  • 评论
  • *举报

上一篇:Pytest学习-yaml+parametrize使用

下一篇:Pytest学习-框架代码分层优化

Original: https://blog.51cto.com/u_15626734/5551242
Author: 我的事说来话长
Title: Pytest学习-yaml+parametrize接口实战

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/504409/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球