Adjust scope of zha global quirks fixture (#132463)

pull/132467/head
epenet 2024-12-06 10:11:52 +01:00 committed by GitHub
parent 0c8ebbe588
commit b4d01dfd0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 3 deletions

View File

@ -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()