From 986f915b55bbd80ae48317472061985c56909d77 Mon Sep 17 00:00:00 2001 From: Suryakant Sahoo <230859682+suryakant-source@users.noreply.github.com> Date: Thu, 15 Oct 2026 14:23:39 +0530 Subject: [PATCH] test: opt out of telemetry before test modules import the MCP server --- tests/conftest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index eb96e4c9c..462094922 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -28,6 +28,10 @@ logger = logging.getLogger(__name__) +# Opt out of telemetry before test modules are imported. `airbyte.mcp.server` builds its +# Segment sink at import time, which is earlier than the per-test `do_not_track` fixture runs. +os.environ["DO_NOT_TRACK"] = "true" + PYTEST_POSTGRES_IMAGE = "postgres:13" PYTEST_POSTGRES_CONTAINER = "postgres_pytest_container"