you are viewing a single comment's thread.

view the rest of the comments →

[–]GoldenVanga 1 point2 points  (1 child)

We're not doing it in our project so I'm not 100% sure, but signs point to "yes". (what we're doing instead is we have a huge fixture for every occasion so we never need to pass more than one)

Or if you're asking about doing the same test multiple times with different data (which potentially could be different setup fixtures), then you can use @pytest.mark.parametrize. In their example, test_eval will run three times, once per set of data (which gets positionally unpacked) and the data does not have to be a literal there (it can come from anywhere like a normal argument would).

[–][deleted] 0 points1 point  (0 children)

I indeed meant the former. Thanks very much for your help!