mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Use asynctest-mock in most places (#35109)
* Use asynctest-mock in most places * Fix broken patch in pilight
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user