摘要: 介绍 parametrize装饰器可以对函数进行参数化,像用例相同场景不同数据的时候就可以使用它 函数参数化 import pytest @pytest.mark.parametrize("nub1,nub2,nub3",[[1,2,3],[2,2,4],[3,2,5]]) def test_01( 阅读全文
posted @ 2022-06-21 09:54 zhq9 阅读(40) 评论(0) 推荐(0) 编辑