Say I have a file fixtures.py that defines a simple py.test fixture called foobar.
Normally I would have to import that fixture to use it (including all of the sub-fixtures), like this:
from fixtures import foobar def test_bazinga(foobar): Note that I also don't want to use a star import.
How do I import this fixture so that I can just write:
import fixtures def test_bazinga(foobar): Is this even possible? It seems like it, because py.test itself defines exactly such fixtures (e.g. monkeypatch).
py.testdoes it?