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:
parent
0b72e3f598
commit
14be13391d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user