import pytest @pytest.fixture def some_fixture(): return 'fixture from test_root.py' def test_simple(some_fixture): assert some_fixture == 'fixture from test_root.py'