I want to run the fixture before other fixtures.
How can I set one function to run before all the function in "conftest.py"?
my function:
@pytest.mark.run(order=1)
@fixture(scope='session', autouse=True)
def init_test_failures():
test_failures.clear()
example for the ordering in allure report - need to this function to be the first
def init_test_failures():
test_failures.clear()
i have same fixture function with scope=module or session – Adi Mordoch Mar 23 '20 at 10:37