Only load translations for an integration once per test session (#117118)

This commit is contained in:
J. Nick Koston
2024-05-11 12:00:02 +09:00
committed by GitHub
parent 9e107a02db
commit d7aa24fa50
4 changed files with 55 additions and 9 deletions

View File

@@ -16,6 +16,11 @@ from homeassistant.loader import async_get_integration
from homeassistant.setup import async_setup_component
@pytest.fixture(autouse=True)
def _disable_translations_once(disable_translations_once):
"""Override loading translations once."""
@pytest.fixture
def mock_config_flows():
"""Mock the config flows."""