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
@@ -25,7 +25,8 @@ from tests.common import MockConfigEntry
|
||||
def mock_setup():
|
||||
"""Mock entry setup."""
|
||||
with patch(
|
||||
"homeassistant.components.speedtestdotnet.async_setup_entry", return_value=True,
|
||||
"homeassistant.components.speedtestdotnet.async_setup_entry",
|
||||
return_value=True,
|
||||
):
|
||||
yield
|
||||
|
||||
@@ -88,7 +89,12 @@ async def test_import_success(hass, mock_setup):
|
||||
|
||||
async def test_options(hass):
|
||||
"""Test updating options."""
|
||||
entry = MockConfigEntry(domain=DOMAIN, title="SpeedTest", data={}, options={},)
|
||||
entry = MockConfigEntry(
|
||||
domain=DOMAIN,
|
||||
title="SpeedTest",
|
||||
data={},
|
||||
options={},
|
||||
)
|
||||
entry.add_to_hass(hass)
|
||||
|
||||
with patch("speedtest.Speedtest") as mock_api:
|
||||
@@ -119,7 +125,11 @@ async def test_options(hass):
|
||||
|
||||
async def test_integration_already_configured(hass):
|
||||
"""Test integration is already configured."""
|
||||
entry = MockConfigEntry(domain=DOMAIN, data={}, options={},)
|
||||
entry = MockConfigEntry(
|
||||
domain=DOMAIN,
|
||||
data={},
|
||||
options={},
|
||||
)
|
||||
entry.add_to_hass(hass)
|
||||
result = await hass.config_entries.flow.async_init(
|
||||
speedtestdotnet.DOMAIN, context={"source": "user"}
|
||||
|
||||
Reference in new issue
Block a user