wolever / parameterized

Parameterized testing with any Python test framework
Other
836 stars 105 forks source link

fix got an error message, lambda missing arguments while set skip_on_empty #93

Closed mrfunctionC3 closed 4 years ago

mrfunctionC3 commented 4 years ago

you can link this to issue 92

fix got an error message, lambda missing arguments while set skip_on_empty=True but parameter list is empty and test function need arguments


TypeError: () takes 0 positional arguments but 1 was given

wolever commented 4 years ago

Hey! Thanks for the PR!

How can I reproduce the issue?

If arguments are being passed, I wonder if the correct fix would be: lambda *args: skip_on_empty(*args)

wolever commented 4 years ago

I've got this fixed in v0.7.4 🙂

meigaoms commented 4 years ago

skip_if_empty in v0.7.4 does not work here. Have the same error: :TestMLflowProjects::test_project - TypeError: () takes 0 positional arguments but 1 was given

bhavyakjain commented 4 years ago

This issue is still persisting in v0.7.4. Also, the fix mentioned above is not present in v0.7.4 yet. Please reopen this issue.