"""Fixtures scoped to the identity endpoint integration tests.""" import pytest @pytest.fixture(autouse=True) async def autouse_seed_policy_metadata_cache(seed_policy_metadata_cache: None) -> None: """Seed cerbos_policy_metadata for every identity endpoint test. The check/resources handlers read this cache when pp_vendor_features_lookup is on (see tests/.split), so it must be present for all identity tests. Error-path tests still opt into policy_metadata_cache_key_absent to remove it after seeding. """ pass