I want to error-test several functions in my library by passing None
to all their input arguments:
fun_1(None)
fun_2(None, None)
fun_3(None)
fun_4(None, None, None)
However I have a lot of functions and I want to make it very simple to add each of the to the test.
I want to make a list of functions as:
my_list= [fun_1, fun_2, fun_3, fun_4]
And then being able to call all of them with all their arguments as None
:
for f in my_list:
f(#I don't know what to put here !)
Is there a syntax that allows this?
PS. in this particular lib passing None
is always an error.