mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Upgrade black to 20.8b1 (#39287)
This commit is contained in:
@@ -120,7 +120,8 @@ async def test_manual_flow_with_invalid_path(hass):
|
||||
USER_PROVIDED_PATH = "/user/provided/path"
|
||||
|
||||
with patch(
|
||||
DONGLE_VALIDATE_PATH_METHOD, Mock(return_value=False),
|
||||
DONGLE_VALIDATE_PATH_METHOD,
|
||||
Mock(return_value=False),
|
||||
):
|
||||
result = await hass.config_entries.flow.async_init(
|
||||
DOMAIN, context={"source": "manual"}, data={CONF_DEVICE: USER_PROVIDED_PATH}
|
||||
@@ -149,7 +150,8 @@ async def test_import_flow_with_invalid_path(hass):
|
||||
DATA_TO_IMPORT = {CONF_DEVICE: "/invalid/path/to/import"}
|
||||
|
||||
with patch(
|
||||
DONGLE_VALIDATE_PATH_METHOD, Mock(return_value=False),
|
||||
DONGLE_VALIDATE_PATH_METHOD,
|
||||
Mock(return_value=False),
|
||||
):
|
||||
result = await hass.config_entries.flow.async_init(
|
||||
DOMAIN, context={"source": "import"}, data=DATA_TO_IMPORT
|
||||
|
||||
Reference in New Issue
Block a user