mirror of
https://github.com/home-assistant/core.git
synced 2025-12-23 20:39:01 +00:00
Drop asynctest (#44746)
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
"""HomeKit controller session fixtures."""
|
||||
import datetime
|
||||
from unittest import mock
|
||||
import unittest.mock
|
||||
|
||||
from aiohomekit.testing import FakeController
|
||||
import pytest
|
||||
|
||||
import homeassistant.util.dt as dt_util
|
||||
|
||||
import tests.async_mock
|
||||
from tests.components.light.conftest import mock_light_profiles # noqa
|
||||
|
||||
|
||||
@@ -25,5 +25,5 @@ def utcnow(request):
|
||||
def controller(hass):
|
||||
"""Replace aiohomekit.Controller with an instance of aiohomekit.testing.FakeController."""
|
||||
instance = FakeController()
|
||||
with tests.async_mock.patch("aiohomekit.Controller", return_value=instance):
|
||||
with unittest.mock.patch("aiohomekit.Controller", return_value=instance):
|
||||
yield instance
|
||||
|
||||
Reference in New Issue
Block a user