From e0c9921c3b720d799bf6f99582a6d2eeb5c1ffee Mon Sep 17 00:00:00 2001 From: Joan Fontanals Date: Thu, 20 Jul 2023 10:58:08 +0200 Subject: [PATCH] test: optout telemetry in test (#50) --- tests/conftest.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index 176e376..83b703b 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,5 +1,11 @@ import pytest + @pytest.fixture(autouse=True) def test_log_level(monkeypatch): monkeypatch.setenv('JINA_LOG_LEVEL', 'DEBUG') + + +@pytest.fixture(autouse=True) +def test_disable_telemetry(monkeypatch): + monkeypatch.setenv('JINA_OPTOUT_TELEMETRY', 'True')