from __future__ import annotations import os import pytest @pytest.fixture(autouse=True) def _require_api_key() -> None: # pyright: ignore[reportUnusedFunction] if not os.environ.get("OPENSTATUS_API_KEY"): pytest.skip( "OPENSTATUS_API_KEY env var is required for integration tests; " "run `OPENSTATUS_API_KEY=... uv run pytest tests/integration`", )