diff --git a/.env.example b/.env.example index 2c10713..d7d3bae 100644 --- a/.env.example +++ b/.env.example @@ -14,10 +14,17 @@ GMT_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/ SMTP_HOST=localhost SMTP_PORT=587 -# SSDS API endpoint (set to your dev server as needed) -SSDS_API_BASE=https://mooring-ssds.shore.mbari.org/api +# SSDS API endpoint (set to production or development server as needed), used by the +# --update_ssds_provenance flag in lrauv_deployment_plots.py. +# For production, use the public API endpoint: https://mooring-ssds.shore.mbari.org/api +SSDS_API_BASE= -# SSDS provenance auth stubs (API key) +# SSDS API authentication. +# SSDS_API_KEY: a Django REST Framework token issued per user. To generate one: +# Production: docker compose run --rm django python manage.py drf_create_token +# Development: python manage.py drf_create_token +# The token is printed once — save it securely. To rotate it, add the -r flag. +# SSDS_API_KEY_HEADER: the header used to send the token (default: X-API-Key). SSDS_API_KEY= SSDS_API_KEY_HEADER=X-API-Key diff --git a/src/data/dorado_info.py b/src/data/dorado_info.py index 9b73e17..8a3ffa2 100644 --- a/src/data/dorado_info.py +++ b/src/data/dorado_info.py @@ -2968,3 +2968,9 @@ "Monterey Bay MBTS Mission - 35025G ISUS, and LISST payloads removed - ctdToUse = ctd1 " ), } +dorado_info["2026.113.00"] = { + "program": f"{MBTSLINE}", + "comment": ( + "Monterey Bay MBTS Mission - 11326G ISUS, and LISST payloads removed - ctdToUse = ctd1 " + ), +} diff --git a/src/data/test_lrauv_deployment_plots.py b/src/data/test_lrauv_deployment_plots.py index fdaca0a..55cf5b3 100644 --- a/src/data/test_lrauv_deployment_plots.py +++ b/src/data/test_lrauv_deployment_plots.py @@ -69,6 +69,13 @@ def dp(): return plotter +@pytest.fixture(autouse=True) +def _clear_notify_env(monkeypatch): + """Prevent tests from accidentally sending real Slack/email notifications.""" + monkeypatch.delenv("LRAUV_NOTIFY", raising=False) + monkeypatch.delenv("SLACK_BOT_TOKEN", raising=False) + + # --------------------------------------------------------------------------- # Tests for _write_per_png_html() # ---------------------------------------------------------------------------