"""Fixtures scoped to the infra 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 infra endpoint test. check_authorization_infra and check_connectivity_cerbos read this cache when pp_vendor_features_lookup is on (see tests/.split), so it must be present for all infra tests. Error-path tests still opt into policy_metadata_cache_key_absent to remove it after seeding. """ pass