Adjust scope of zha global quirks fixture (#132463)
parent
0c8ebbe588
commit
b4d01dfd0c
|
@ -8,6 +8,7 @@ from unittest.mock import AsyncMock, MagicMock, create_autospec, patch
|
|||
import warnings
|
||||
|
||||
import pytest
|
||||
import zhaquirks
|
||||
import zigpy
|
||||
from zigpy.application import ControllerApplication
|
||||
import zigpy.backups
|
||||
|
@ -38,7 +39,7 @@ FIXTURE_GRP_NAME = "fixture group"
|
|||
COUNTER_NAMES = ["counter_1", "counter_2", "counter_3"]
|
||||
|
||||
|
||||
@pytest.fixture(scope="module", autouse=True)
|
||||
@pytest.fixture(scope="package", autouse=True)
|
||||
def globally_load_quirks():
|
||||
"""Load quirks automatically so that ZHA tests run deterministically in isolation.
|
||||
|
||||
|
@ -47,8 +48,6 @@ def globally_load_quirks():
|
|||
run.
|
||||
"""
|
||||
|
||||
import zhaquirks # pylint: disable=import-outside-toplevel
|
||||
|
||||
zhaquirks.setup()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue