From 09cb35801533f7efec23a31d24a930ecebe89997 Mon Sep 17 00:00:00 2001 From: Erik Date: Thu, 1 May 2025 09:45:32 +0200 Subject: [PATCH] Reset template cache --- tests/conftest.py | 1 + 1 file changed, 1 insertion(+) 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: