Closed ShedPlant closed 2 years ago
It's not an issue of pytest-bdd. Your usage of the repeat_with_args
decorator is wrong. It expects num_times as argument but gets function
My simplified example above was a bit wrong, should have said there was a default value.
def repeat_with_args(num_times=5):
# then as above
I expected @repeat_with_args
decorator without specifying the num_times
argument to work, but it results in the error. @repeat_with_args()
works fine.
Thanks for the help @elchupanebrej !
As a workaround: