Upgrade black to 20.8b1 (#39287)

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

No files matched your search

+7 -2
View File
@@ -41,7 +41,8 @@ def mock_batch_timeout(hass, monkeypatch):
"""Mock the event bus listener and the batch timeout for tests."""
hass.bus.listen = MagicMock()
monkeypatch.setattr(
f"{INFLUX_PATH}.InfluxThread.batch_timeout", Mock(return_value=0),
f"{INFLUX_PATH}.InfluxThread.batch_timeout",
Mock(return_value=0),
)
@@ -868,7 +869,11 @@ async def test_event_listener_default_measurement(
handler_method = await _setup(hass, mock_client, config, get_write_api)
state = MagicMock(
state=1, domain="fake", entity_id="fake.ok", object_id="ok", attributes={},
state=1,
domain="fake",
entity_id="fake.ok",
object_id="ok",
attributes={},
)
event = MagicMock(data={"new_state": state}, time_fired=12345)
body = [