Kaynağa Gözat

Fixed reverse sites_tests failures introduced in refs #24834.

Tim Graham 9 yıl önce
ebeveyn
işleme
0d97e73d95
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      tests/sites_tests/tests.py

+ 3 - 0
tests/sites_tests/tests.py

@@ -27,6 +27,9 @@ class SitesFrameworkTests(TestCase):
         )
         self.site.save()
 
+    def tearDown(self):
+        Site.objects.clear_cache()
+
     def test_site_manager(self):
         # Make sure that get_current() does not return a deleted Site object.
         s = Site.objects.get_current()