"""Configuration file for pytest. This file gets picked up when running py.test tests: http://pytest.org/latest/writing_plugins.html#conftest """ import pytest from ddtrace import tracer from notifications_delivery.utils.translations import get_translations tracer.enabled = False @pytest.fixture(autouse=True) def clear_cache(): """Clear translation cache before each test.""" get_translations.cache_clear() yield