我有在conftest.py中定义的公共fixture,它在所有模块之间共享,范围是'function‘作用域,如下所示: conftest.py @pytest.fixture(scope="function# resets the state of the services 我的测试当前调用它,如下所示, test_module_one: # change scope to session here
@pytest.mark.usefixtures对于上面的特定测试,我希望将reset_state公