mirror of
https://github.com/home-assistant/core.git
synced 2026-08-15 09:42:50 +01:00
Split user flow init and data submission in nina config flow tests (#178992)
This commit is contained in:
@@ -98,7 +98,14 @@ async def test_step_user_no_selection(
|
||||
result: dict[str, Any] = await hass.config_entries.flow.async_init(
|
||||
DOMAIN,
|
||||
context={"source": SOURCE_USER},
|
||||
data={CONF_FILTERS: {CONF_HEADLINE_FILTER: ""}},
|
||||
)
|
||||
|
||||
assert result["type"] is FlowResultType.FORM
|
||||
assert result["errors"] == {}
|
||||
|
||||
result = await hass.config_entries.flow.async_configure(
|
||||
result["flow_id"],
|
||||
user_input={CONF_FILTERS: {CONF_HEADLINE_FILTER: ""}},
|
||||
)
|
||||
|
||||
assert result["type"] is FlowResultType.FORM
|
||||
|
||||
Reference in New Issue
Block a user