mirror of
https://github.com/wagtail/wagtail.git
synced 2024-12-01 11:41:20 +01:00
Call super setUpClass
Fixtures are now loaded in setUpClass so we must make sure it gets called
This commit is contained in:
parent
3efbb152ca
commit
7a830bbe35
@ -363,10 +363,12 @@ class TestDocumentCacheInvalidation(TestCase):
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super(TestDocumentCacheInvalidation, cls).setUpClass()
|
||||
signal_handlers.register_signal_handlers()
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
super(TestDocumentCacheInvalidation, cls).tearDownClass()
|
||||
signal_handlers.unregister_signal_handlers()
|
||||
|
||||
def test_resave_document_purges(self, purge):
|
||||
|
@ -360,10 +360,12 @@ class TestImageCacheInvalidation(TestCase):
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super(TestImageCacheInvalidation, cls).setUpClass()
|
||||
signal_handlers.register_signal_handlers()
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
super(TestImageCacheInvalidation, cls).tearDownClass()
|
||||
signal_handlers.unregister_signal_handlers()
|
||||
|
||||
def test_resave_image_purges(self, purge):
|
||||
|
@ -609,10 +609,12 @@ class TestPageCacheInvalidation(TestCase):
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super(TestPageCacheInvalidation, cls).setUpClass()
|
||||
signal_handlers.register_signal_handlers()
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
super(TestPageCacheInvalidation, cls).tearDownClass()
|
||||
signal_handlers.unregister_signal_handlers()
|
||||
|
||||
def test_republish_page_purges(self, purge):
|
||||
|
Loading…
Reference in New Issue
Block a user