"""Shared test fixtures.""" from __future__ import annotations import pytest @pytest.fixture(autouse=True) def _default_token(monkeypatch: pytest.MonkeyPatch) -> None: """Provide a non-empty SONARQUBE_TOKEN by default. Tests that exercise the missing-token path explicitly call ``monkeypatch.delenv("SONARQUBE_TOKEN", raising=False)``. """ monkeypatch.setenv("SONARQUBE_TOKEN", "test-token-default")