mirror of
https://github.com/home-assistant/core.git
synced 2025-11-11 12:00:52 +00:00
Add test fixture ignore_translations_for_mock_domains (#139235)
* Add test fixture ignore_translations_for_mock_domains * Fix fixture * Avoid unnecessary attempt to get integration * Really fix fixture * Add forgotten parameter * Address review comment
This commit is contained in:
@@ -540,10 +540,7 @@ async def test_call_service_schema_validation_error(
|
||||
assert len(calls) == 0
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"ignore_translations",
|
||||
["component.test.exceptions.custom_error.message"],
|
||||
)
|
||||
@pytest.mark.parametrize("ignore_translations_for_mock_domains", ["test"])
|
||||
async def test_call_service_error(
|
||||
hass: HomeAssistant, websocket_client: MockHAClientWebSocket
|
||||
) -> None:
|
||||
@@ -2394,9 +2391,7 @@ async def test_execute_script(
|
||||
),
|
||||
],
|
||||
)
|
||||
@pytest.mark.parametrize(
|
||||
"ignore_translations", ["component.test.exceptions.test_error.message"]
|
||||
)
|
||||
@pytest.mark.parametrize("ignore_translations_for_mock_domains", ["test"])
|
||||
async def test_execute_script_err_localization(
|
||||
hass: HomeAssistant,
|
||||
websocket_client: MockHAClientWebSocket,
|
||||
|
||||
Reference in New Issue
Block a user