Upgrade black to 20.8b1 (#39287)
This commit is contained in:
parent
0d7eec710c
commit
1c2ebdf307
574 changed files with 4389 additions and 1725 deletions
|
@ -22,9 +22,13 @@ async def test_flow_success(hass):
|
|||
), patch(
|
||||
"homeassistant.components.zerproc.async_setup", return_value=True
|
||||
) as mock_setup, patch(
|
||||
"homeassistant.components.zerproc.async_setup_entry", return_value=True,
|
||||
"homeassistant.components.zerproc.async_setup_entry",
|
||||
return_value=True,
|
||||
) as mock_setup_entry:
|
||||
result2 = await hass.config_entries.flow.async_configure(result["flow_id"], {},)
|
||||
result2 = await hass.config_entries.flow.async_configure(
|
||||
result["flow_id"],
|
||||
{},
|
||||
)
|
||||
|
||||
assert result2["type"] == "create_entry"
|
||||
assert result2["title"] == "Zerproc"
|
||||
|
@ -50,9 +54,13 @@ async def test_flow_no_devices_found(hass):
|
|||
), patch(
|
||||
"homeassistant.components.zerproc.async_setup", return_value=True
|
||||
) as mock_setup, patch(
|
||||
"homeassistant.components.zerproc.async_setup_entry", return_value=True,
|
||||
"homeassistant.components.zerproc.async_setup_entry",
|
||||
return_value=True,
|
||||
) as mock_setup_entry:
|
||||
result2 = await hass.config_entries.flow.async_configure(result["flow_id"], {},)
|
||||
result2 = await hass.config_entries.flow.async_configure(
|
||||
result["flow_id"],
|
||||
{},
|
||||
)
|
||||
|
||||
assert result2["type"] == "abort"
|
||||
assert result2["reason"] == "no_devices_found"
|
||||
|
@ -76,9 +84,13 @@ async def test_flow_exceptions_caught(hass):
|
|||
), patch(
|
||||
"homeassistant.components.zerproc.async_setup", return_value=True
|
||||
) as mock_setup, patch(
|
||||
"homeassistant.components.zerproc.async_setup_entry", return_value=True,
|
||||
"homeassistant.components.zerproc.async_setup_entry",
|
||||
return_value=True,
|
||||
) as mock_setup_entry:
|
||||
result2 = await hass.config_entries.flow.async_configure(result["flow_id"], {},)
|
||||
result2 = await hass.config_entries.flow.async_configure(
|
||||
result["flow_id"],
|
||||
{},
|
||||
)
|
||||
|
||||
assert result2["type"] == "abort"
|
||||
assert result2["reason"] == "no_devices_found"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue