Upgrade black to 20.8b1 (#39287)
This commit is contained in:
1 parent
0d7eec710c
commit
1c2ebdf307
574 files changed
+4389
-1725
No files matched your search
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user