summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-04-19 09:21:27 -0400
committerTim Graham <timograham@gmail.com>2016-04-19 09:21:27 -0400
commit2a9bcb503f2aa1b7462174cf95852a2aafbe90ec (patch)
treeb2400a105cd4fed4b073c156d8fe1711e615f6f5
parent500e5a6886b4816740bbeedac1457b26a493d756 (diff)
Refs #26085, #11505 -- Cleared Site cache in contenttypes_tests.
-rw-r--r--tests/contenttypes_tests/tests.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/contenttypes_tests/tests.py b/tests/contenttypes_tests/tests.py
index a494df0340..da4b3311c4 100644
--- a/tests/contenttypes_tests/tests.py
+++ b/tests/contenttypes_tests/tests.py
@@ -48,6 +48,9 @@ class ContentTypesViewsTests(TestCase):
cls.scheme2 = SchemeIncludedURL.objects.create(url='https://test_scheme_included_https/')
cls.scheme3 = SchemeIncludedURL.objects.create(url='//test_default_scheme_kept/')
+ def setUp(self):
+ Site.objects.clear_cache()
+
def test_shortcut_with_absolute_url(self):
"Can view a shortcut for an Author object that has a get_absolute_url method"
for obj in Author.objects.all():