-
Notifications
You must be signed in to change notification settings - Fork 106
Open
Description
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 xto 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 xMetadata
Metadata
Assignees
Labels
No labels