0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

Clear cache between test runs

This avoids any potential issue of caches persisting between runs
This commit is contained in:
Jake Howard 2022-12-15 16:01:40 +00:00 committed by Matt Westcott
parent 0b72e3f598
commit 14be13391d

View File

@ -15,6 +15,12 @@ from wagtail.test.testapp.models import SimplePage
class TestPageUrlTags(TestCase):
fixtures = ["test.json"]
def setUp(self):
super().setUp()
# Clear caches
cache.clear()
def test_pageurl_tag(self):
response = self.client.get("/events/")
self.assertEqual(response.status_code, 200)