"""Test package init. ``TRUSTED_PROXY_CIDRS`` must be set before :mod:`pyfconfig.config` is first imported because settings are read from the environment at import time. The ASGI transport used by the tests presents ``127.0.0.1`` as the socket peer, so it is trusted here together with ``10.0.0.0/8`` to exercise the right-to-left trusted-proxy chain walk. """ from __future__ import annotations import os os.environ.setdefault("TRUSTED_PROXY_CIDRS", "127.0.0.1,10.0.0.0/8")