1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Fix tests for Python 3.8 (#34672)

This commit is contained in:
Paulus Schoutsen
2020-04-25 14:32:55 -07:00
committed by GitHub
parent d53cb951e7
commit 0d700f6a63
40 changed files with 248 additions and 285 deletions

View File

@@ -1,8 +1,8 @@
"""Set up some common test helper things."""
import functools
import logging
from unittest.mock import patch
from asynctest import patch
import pytest
import requests_mock as _requests_mock
@@ -26,7 +26,6 @@ from tests.common import ( # noqa: E402, isort:skip
INSTANCES,
MockUser,
async_test_home_assistant,
mock_coro,
mock_storage as mock_storage,
)
from tests.test_util.aiohttp import mock_aiohttp_client # noqa: E402, isort:skip
@@ -128,7 +127,7 @@ def mock_device_tracker_conf():
side_effect=mock_update_config,
), patch(
"homeassistant.components.device_tracker.legacy.async_load_config",
side_effect=lambda *args: mock_coro(devices),
side_effect=lambda *args: devices,
):
yield devices