Order of decorators type: question #3646
Labels
topic: marks
related to marks, either the general marks or builtin
topic: parametrize
related to @pytest.mark.parametrize
type: question
general question, might be closed after 2 weeks of inactivity
I ran into a very cryptic error in pytest, after adding a '@pytest.mark.parametrize' decorator the test started throwing the following error:
I found the source of the error here
Here's what the signature of my function looks like (simplified):
Turns out the order of decorators in pytest matters
Changing the order removed the error.
Question - could there be a more helpful error for n00bs like me?
Posted in stackoverflow as well
The text was updated successfully, but these errors were encountered: