0

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

0 Answers0