Skip to content

Commit a16bec7

Browse files
committed
Simplify import
1 parent 9bd7d06 commit a16bec7

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

tests/conftest.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
import requests_mock
3737
import respx
3838
from syrupy.assertion import SnapshotAssertion
39+
from syrupy.session import SnapshotSession
3940

4041
from homeassistant import block_async_io
4142
from homeassistant.exceptions import ServiceNotFound
@@ -92,7 +93,7 @@
9293
from homeassistant.util.json import json_loads
9394

9495
from .ignore_uncaught_exceptions import IGNORE_UNCAUGHT_EXCEPTIONS
95-
from .syrupy import HomeAssistantSnapshotExtension
96+
from .syrupy import HomeAssistantSnapshotExtension, override_syrupy_finish
9697
from .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

0 commit comments

Comments
 (0)