Skip to content

Commit

Permalink
Make sure gateway fixture does not reload quirk on each run (#119)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
elupus authored Aug 1, 2024
1 parent c043f62 commit 98ab2f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 98ab2f5

Please sign in to comment.