Pytest fixture with scope “class” running on every method
问题 I'm trying to create a test environment with Pytest. The idea is to group test methods into classes. For every class/group, I want to attach a config fixture that is going to be parametrized. So that I can run all the tests with "configuration A" and then all tests with "configuration B" and so on. But also, I want a reset fixture, that can be executed before specific methods or all methods of a class. The problem I have there is, once I apply my reset fixture (to a method or to a whole class