mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Only load translations for an integration once per test session (#117118)
This commit is contained in:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user