1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 04:50:05 +00:00

Upgrade black to 20.8b1 (#39287)

This commit is contained in:
Franck Nijhof
2020-08-27 13:56:20 +02:00
committed by GitHub
parent 0d7eec710c
commit 1c2ebdf307
574 changed files with 4389 additions and 1725 deletions

View File

@@ -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"}