Skip to content

Commit

Permalink
test debug
Browse files Browse the repository at this point in the history
  • Loading branch information
wrabit committed Jul 6, 2024
1 parent d4f96df commit c149695
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions django_cotton/tests/inline_test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit c149695

Please sign in to comment.