mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-11 10:30:58 +00: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
3 changed files with 6 additions and 0 deletions
|
|
@ -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 a new issue