""" Shared fixtures for notification tests. Notifications are gated behind LDR_NOTIFICATIONS_ALLOW_OUTBOUND at the server level (see SECURITY.md "Notification Webhook SSRF"). Existing tests exercise the underlying logic and assume the gate is open; this autouse fixture sets the env var so they don't all need explicit monkeypatching. Tests that want to verify the gate behavior itself can override by calling ``monkeypatch.delenv("LDR_NOTIFICATIONS_ALLOW_OUTBOUND", raising=False)`` inside the test body. """ import pytest @pytest.fixture(autouse=True) def enable_notifications_by_default(monkeypatch): monkeypatch.setenv("LDR_NOTIFICATIONS_ALLOW_OUTBOUND", "true")