"""Per-suite fixtures for the identity-consumer pull surface.""" from __future__ import annotations import pytest from app.core.config import settings @pytest.fixture(autouse=True) def _zero_feed_safety_lag(): """Disable the keyset-feed visibility horizon in this suite. Tests create persons and query the feed within the same second; the production default (5s) would hide every freshly-written row. The dedicated horizon test re-enables it explicitly. """ original = settings.DIRECTORY_API_FEED_SAFETY_LAG_SECONDS settings.DIRECTORY_API_FEED_SAFETY_LAG_SECONDS = 0 yield settings.DIRECTORY_API_FEED_SAFETY_LAG_SECONDS = original