Replace asynctest with tests.async_mock (#37428)
This commit is contained in:
1 parent
eb66da6436
commit
0c771f1c42
17 files changed
+22
-25
No files matched your search
@@ -1,10 +1,11 @@
|
||||
"""Test the zerproc config flow."""
|
||||
from asynctest import patch
|
||||
import pyzerproc
|
||||
|
||||
from homeassistant import config_entries, setup
|
||||
from homeassistant.components.zerproc.config_flow import DOMAIN
|
||||
|
||||
from tests.async_mock import patch
|
||||
|
||||
|
||||
async def test_flow_success(hass):
|
||||
"""Test we get the form."""
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
"""Test the zerproc lights."""
|
||||
from asynctest import patch
|
||||
import pytest
|
||||
import pyzerproc
|
||||
|
||||
@@ -24,6 +23,7 @@ from homeassistant.const import (
|
||||
)
|
||||
import homeassistant.util.dt as dt_util
|
||||
|
||||
from tests.async_mock import patch
|
||||
from tests.common import MockConfigEntry, async_fire_time_changed
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user