Add missing patch in dnsip test (#127802)
This commit is contained in:
parent
06170592bd
commit
599076d6f4
1 changed files with 9 additions and 5 deletions
|
@ -278,11 +278,15 @@ async def test_options_flow_empty_return(hass: HomeAssistant) -> None:
|
||||||
assert result["type"] is FlowResultType.FORM
|
assert result["type"] is FlowResultType.FORM
|
||||||
assert result["step_id"] == "init"
|
assert result["step_id"] == "init"
|
||||||
|
|
||||||
result = await hass.config_entries.options.async_configure(
|
with patch(
|
||||||
result["flow_id"],
|
"homeassistant.components.dnsip.config_flow.aiodns.DNSResolver",
|
||||||
user_input={},
|
return_value=RetrieveDNS(),
|
||||||
)
|
):
|
||||||
await hass.async_block_till_done()
|
result = await hass.config_entries.options.async_configure(
|
||||||
|
result["flow_id"],
|
||||||
|
user_input={},
|
||||||
|
)
|
||||||
|
await hass.async_block_till_done()
|
||||||
|
|
||||||
assert result["type"] is FlowResultType.CREATE_ENTRY
|
assert result["type"] is FlowResultType.CREATE_ENTRY
|
||||||
assert result["data"] == {
|
assert result["data"] == {
|
||||||
|
|
Loading…
Add table
Reference in a new issue