Use asynctest-mock in most places (#35109)

* Use asynctest-mock in most places

* Fix broken patch in pilight
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2020-05-03 11:27:19 -07:00
1 parent e7fc886992
commit 2af984917e
319 files changed
+456 -522

No files matched your search

+2 -1
View File
@@ -1,7 +1,6 @@
"""The tests for the Home Assistant HTTP component."""
from datetime import timedelta
from ipaddress import ip_network
from unittest.mock import patch
from aiohttp import BasicAuth, web
from aiohttp.web_exceptions import HTTPUnauthorized
@@ -15,6 +14,8 @@ from homeassistant.setup import async_setup_component
from . import HTTP_HEADER_HA_AUTH, mock_real_ip
from tests.async_mock import patch
API_PASSWORD = "test-password"
# Don't add 127.0.0.1/::1 as trusted, as it may interfere with other test cases