mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix 'pytest.register_assert_rewrite("tests.common")' warning (#29797)
see fea243c035 (r355533273)
This commit is contained in:
parent
080c702d4f
commit
897522a82d
@ -13,7 +13,9 @@ from homeassistant.auth.const import GROUP_ID_ADMIN, GROUP_ID_READ_ONLY
|
|||||||
from homeassistant.auth.providers import homeassistant, legacy_api_password
|
from homeassistant.auth.providers import homeassistant, legacy_api_password
|
||||||
from homeassistant.util import location
|
from homeassistant.util import location
|
||||||
|
|
||||||
from tests.common import ( # noqa: E402 module level import not at top of file
|
pytest.register_assert_rewrite("tests.common")
|
||||||
|
|
||||||
|
from tests.common import ( # noqa: E402, isort:skip
|
||||||
CLIENT_ID,
|
CLIENT_ID,
|
||||||
INSTANCES,
|
INSTANCES,
|
||||||
MockUser,
|
MockUser,
|
||||||
@ -21,11 +23,7 @@ from tests.common import ( # noqa: E402 module level import not at top of file
|
|||||||
mock_coro,
|
mock_coro,
|
||||||
mock_storage as mock_storage,
|
mock_storage as mock_storage,
|
||||||
)
|
)
|
||||||
from tests.test_util.aiohttp import ( # noqa: E402 module level import not at top of file
|
from tests.test_util.aiohttp import mock_aiohttp_client # noqa: E402, isort:skip
|
||||||
mock_aiohttp_client,
|
|
||||||
)
|
|
||||||
|
|
||||||
pytest.register_assert_rewrite("tests.common")
|
|
||||||
|
|
||||||
if os.environ.get("UVLOOP") == "1":
|
if os.environ.get("UVLOOP") == "1":
|
||||||
import uvloop
|
import uvloop
|
||||||
|
Loading…
x
Reference in New Issue
Block a user