diff --git a/django_cotton/tests/inline_test_case.py b/django_cotton/tests/inline_test_case.py index 73e8a58..4d5e13d 100644 --- a/django_cotton/tests/inline_test_case.py +++ b/django_cotton/tests/inline_test_case.py @@ -3,6 +3,7 @@ import shutil import tempfile +from django.core.cache import cache from django.urls import path from django.test import override_settings from django.views.generic import TemplateView @@ -47,6 +48,10 @@ def tearDownClass(cls): del sys.modules[cls.url_module_name] super().tearDownClass() + def tearDown(self): + """Clear cache between tests""" + cache.clear() + def create_template(self, name, content): """Create a template file in the temporary directory and return the path""" path = os.path.join(self.temp_dir, name)