File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 3636import requests_mock
3737import respx
3838from syrupy .assertion import SnapshotAssertion
39+ from syrupy .session import SnapshotSession
3940
4041from homeassistant import block_async_io
4142from homeassistant .exceptions import ServiceNotFound
9293from homeassistant .util .json import json_loads
9394
9495from .ignore_uncaught_exceptions import IGNORE_UNCAUGHT_EXCEPTIONS
95- from .syrupy import HomeAssistantSnapshotExtension
96+ from .syrupy import HomeAssistantSnapshotExtension , override_syrupy_finish
9697from .typing import (
9798 ClientSessionGenerator ,
9899 MockHAClientWebSocket ,
@@ -149,12 +150,6 @@ def pytest_configure(config: pytest.Config) -> None:
149150 if config .getoption ("verbose" ) > 0 :
150151 logging .getLogger ().setLevel (logging .DEBUG )
151152
152- # pylint: disable-next=import-outside-toplevel
153- from syrupy .session import SnapshotSession
154-
155- # pylint: disable-next=import-outside-toplevel
156- from .syrupy import override_syrupy_finish
157-
158153 # Override default finish to detect unused snapshots despite xdist
159154 SnapshotSession .finish = override_syrupy_finish
160155
You can’t perform that action at this time.
0 commit comments