From a25b2168a312713fafd73e769ab19f71a736ef6b Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Fri, 26 Apr 2024 16:08:58 +0200 Subject: [PATCH] Reduce scope of ZHA test fixtures (#116208) --- tests/components/zha/conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/components/zha/conftest.py b/tests/components/zha/conftest.py index 7d3722b5037..54440a0f75b 100644 --- a/tests/components/zha/conftest.py +++ b/tests/components/zha/conftest.py @@ -42,7 +42,7 @@ FIXTURE_GRP_NAME = "fixture group" COUNTER_NAMES = ["counter_1", "counter_2", "counter_3"] -@pytest.fixture(scope="session", autouse=True) +@pytest.fixture(scope="module", autouse=True) def disable_request_retry_delay(): """Disable ZHA request retrying delay to speed up failures.""" @@ -53,7 +53,7 @@ def disable_request_retry_delay(): yield -@pytest.fixture(scope="session", autouse=True) +@pytest.fixture(scope="module", autouse=True) def globally_load_quirks(): """Load quirks automatically so that ZHA tests run deterministically in isolation.