I was wondering if its possible to inject decorators to expanded functions.
# this won't work
@inject_a_flag_to_setup
@parameterized.expand([1,2,3])
def foo(x):
return x
# suggestion
@parameterized.expand([1,2,3], decorators=[inject_a_flag_to_setup])
def foo(x):
return x
to become
@inject_a_flag_to_setup
def foo_1_1(x):
return x
@inject_a_flag_to_setup
def foo_2_2(x):
return x
@inject_a_flag_to_setup
def foo_3_3(x):
return x
I was wondering if its possible to inject decorators to expanded functions.
to become