#NEWLINE# def pytest_generate_tests( metafunc ) : #NEWLINE# #INDENT# param_names = [ 'duration1' , 'duration2' ] #NEWLINE# values = [ ( 0.0 , 0.0 ) , ( 0.0 , 3.0 ) , ( 3.0 , 0.0 ) , ( 3.0 , 3.0 ) , ( 3.0 , 5.0 ) , ( 5.0 , 3.0 ) ] #NEWLINE# scenarios = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for v in values : #NEWLINE# #INDENT# name = ' ' . join ( [ ( '%s' % e ) for e in v ] ) #NEWLINE# scenarios [ name ] = dict ( zip ( v , v ) ) #NEWLINE# #UNINDENT# for k in scenarios : #NEWLINE# #INDENT# metafunc . addcall ( id = k , funcargs = scenarios [ k ] )