Add check for valid error code in translation checks in flows (#128445)

This commit is contained in:
epenet
2024-10-16 19:03:24 +02:00
committed by GitHub
parent 15fc4a8ae4
commit 0bc572787a
15 changed files with 114 additions and 2 deletions

View File

@@ -2,6 +2,8 @@
from unittest.mock import AsyncMock
import pytest
from homeassistant.components.emoncms.const import CONF_ONLY_INCLUDE_FEEDID, DOMAIN
from homeassistant.config_entries import SOURCE_IMPORT, SOURCE_USER
from homeassistant.const import CONF_API_KEY, CONF_URL
@@ -127,6 +129,10 @@ async def test_options_flow(
assert config_entry.options == CONFIG_ENTRY
@pytest.mark.parametrize( # Remove when translations fixed
"ignore_translations",
["component.emoncms.options.error.failure"],
)
async def test_options_flow_failure(
hass: HomeAssistant,
mock_setup_entry: AsyncMock,