diff --git a/tests/conftest.py b/tests/conftest.py index a0faca90528..22969e8ac5d 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -476,6 +476,7 @@ def reset_globals() -> Generator[None]: # Reset the template cache template.CACHED_TEMPLATE_LRU.clear() template.CACHED_TEMPLATE_NO_COLLECT_LRU.clear() + template._domain_states.cache_clear() # Reset patch_json if patch_json.mock_objects: