mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Fixed #31121 -- Cleared Site cache in SitesFrameworkTests.
Thanks Matthijs Kooijman for the report and analysis.
This commit is contained in:
parent
fef2636f28
commit
5660267e5b
1 changed files with 3 additions and 0 deletions
|
@ -25,6 +25,9 @@ class SitesFrameworkTests(TestCase):
|
|||
cls.site = Site(id=settings.SITE_ID, domain='example.com', name='example.com')
|
||||
cls.site.save()
|
||||
|
||||
def setUp(self):
|
||||
Site.objects.clear_cache()
|
||||
|
||||
def tearDown(self):
|
||||
Site.objects.clear_cache()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue