pytest parametrize传参数

语法: @pytest.mark.parametrize('传参a,...',[...,])
@pytest.mark.parametrize( 'case_list', [ {'edge_property': edge_properties_arr[0], 'expect': False}, {'edge_property': edge_properties_arr[1], 'expect': True}, {'edge_property': edge_properties_arr[2], 'expect': True}, {'edge_property': edge_properties_arr[3], 'expect': True}, {'edge_property': edge_properties_arr[4], 'expect': True}, {'edge_property': edge_properties_arr[5], 'expect': True}, {'edge_property': edge_properties_arr[6], 'expect': True}, ] )

posted @ 2020-10-23 10:55  cure_zero  阅读(129)  评论(0)    收藏  举报