随笔分类 -  pytest

摘要:1.pytest参数化使用pytest的装饰器pytest.mark.parametrize # coding=utf-8import pytest@pytest.mark.parametrize('test_input, expected', # 两个参数,参数放到元组中,所有的参数放到列表中 [ 阅读全文
posted @ 2020-06-02 20:09 飞羽小鱼仔 阅读(203) 评论(0) 推荐(0) 编辑
摘要:安装pytest 1.安装方法 pip install -U pytest 2.pip show pytest查看安装版本 pip show pytest 3.也可以pytest --version查看安装的版本 pytest --version This is pytest version 3.6 阅读全文
posted @ 2019-11-08 10:18 飞羽小鱼仔 阅读(177) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示