def test_fixture_dependency_cycle(): store = FixtureStore() @store.add_fixture @slash.fixture def fixture1(fixture2): return 1 @store.add_fixture @slash.fixture def fixture2(fixture3): return 2 @store.add_fixture @slash.fixture def fixture3(fixture1): return 3 store.resolve() with pytest.raises(CyclicFixtureDependency): store.get_fixture_dict(['fixture1'])