Skip to content

Commit 3548bd2

Browse files
committed
Tear down evict_faked_translations before counting hass objects
1 parent 3110c1d commit 3548bd2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/conftest.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1343,7 +1343,9 @@ def translations_once() -> Generator[_patch]:
13431343

13441344

13451345
@pytest.fixture(autouse=True, scope="module")
1346-
def evict_faked_translations(translations_once) -> Generator[_patch]:
1346+
def evict_faked_translations(
1347+
garbage_collection, translations_once
1348+
) -> Generator[_patch]:
13471349
"""Clear translations for mocked integrations from the cache after each module."""
13481350
real_component_strings = translation_helper._async_get_component_strings
13491351
with patch(

0 commit comments

Comments
 (0)