fierce-park-88503
11/05/2018, 8:04 PM# my_fixtures.py
@pytest.fixture
def foo():
yield 'foo'
@pytest.fixture
def foobar(foo):
yield foo + 'bar'
from my_fixtures import foobar
def test_foobar(foobar):
assert foobar == 'foobar'
the foobar
fixture will fail to initialize because foo
isn’t in pytest’s search path for fixtures