"""Conftest.""" from unittest import mock import pytest @pytest.fixture(scope='session', autouse=True) def mock_dd_tracer(): """Suppress DataDog not able to send data warnings.""" with mock.patch('ddtrace.internal.periodic.PeriodicService._start_service') as _fixture: # noqa:E501 yield _fixture