Adjusts imports in tests to match our relative import rules (#86788)
This commit is contained in:
parent
89c0b27b42
commit
bfbf9b9751
13 changed files with 20 additions and 24 deletions
|
@ -54,11 +54,11 @@ from homeassistant.helpers.typing import ConfigType
|
|||
from homeassistant.setup import async_setup_component
|
||||
from homeassistant.util import dt as dt_util, location
|
||||
|
||||
from tests.ignore_uncaught_exceptions import IGNORE_UNCAUGHT_EXCEPTIONS
|
||||
from .ignore_uncaught_exceptions import IGNORE_UNCAUGHT_EXCEPTIONS
|
||||
|
||||
pytest.register_assert_rewrite("tests.common")
|
||||
|
||||
from tests.common import ( # noqa: E402, isort:skip
|
||||
from .common import ( # noqa: E402, isort:skip
|
||||
CLIENT_ID,
|
||||
INSTANCES,
|
||||
MockConfigEntry,
|
||||
|
@ -70,7 +70,7 @@ from tests.common import ( # noqa: E402, isort:skip
|
|||
init_recorder_component,
|
||||
mock_storage as mock_storage,
|
||||
)
|
||||
from tests.test_util.aiohttp import mock_aiohttp_client # noqa: E402, isort:skip
|
||||
from .test_util.aiohttp import mock_aiohttp_client # noqa: E402, isort:skip
|
||||
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
@ -1062,7 +1062,7 @@ async def async_setup_recorder_instance(
|
|||
# testcase which does not use the recorder.
|
||||
from homeassistant.components import recorder
|
||||
|
||||
from tests.components.recorder.common import async_recorder_block_till_done
|
||||
from .components.recorder.common import async_recorder_block_till_done
|
||||
|
||||
nightly = recorder.Recorder.async_nightly_tasks if enable_nightly_purge else None
|
||||
stats = recorder.Recorder.async_periodic_statistics if enable_statistics else None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue