From 98ab2f5721d7784efbeb1ab4341ca8beaf5fe17d Mon Sep 17 00:00:00 2001 From: Joakim Plate Date: Fri, 2 Aug 2024 01:47:08 +0200 Subject: [PATCH] Make sure gateway fixture does not reload quirk on each run (#119) * Make sure gateway fixture does not reload quirk on each run * Just patch out the setup_quirks call instead to keep coverage This is slower, but also easier. --- tests/conftest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index 7c691874..dffe3832 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -352,6 +352,10 @@ def globally_load_quirks(): zhaquirks.setup() + # Disable gateway built in quirks loading + with patch("zha.application.gateway.setup_quirks"): + yield + @pytest.fixture def device_joined(