I have a test with the following structure:
@pytest.fixture()
def foo():
return 'foo'
@pytest.fixture()
def bar():
return 'bar'
def test_foo_bar(foo, bar):
assert foo + bar == 'foobar'
From my experiments, it appears that foo()
called first, then bar()
. This seems to follow the order which they are listed as parameters? Can I safely rely on this behavior?