Use asynctest-mock in most places (#35109)
* Use asynctest-mock in most places * Fix broken patch in pilight
This commit is contained in:
parent
e7fc886992
commit
2af984917e
319 changed files with 456 additions and 522 deletions
|
@ -1,6 +1,4 @@
|
|||
"""Tests for the iCloud config flow."""
|
||||
from unittest.mock import MagicMock, Mock, patch
|
||||
|
||||
from pyicloud.exceptions import PyiCloudFailedLoginException
|
||||
import pytest
|
||||
|
||||
|
@ -22,6 +20,7 @@ from homeassistant.config_entries import SOURCE_IMPORT, SOURCE_USER
|
|||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
||||
from homeassistant.helpers.typing import HomeAssistantType
|
||||
|
||||
from tests.async_mock import MagicMock, Mock, patch
|
||||
from tests.common import MockConfigEntry
|
||||
|
||||
USERNAME = "username@me.com"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue