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}, ] )

浙公网安备 33010602011771号