0
0
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:
Karl Hobley 2015-04-02 12:36:51 +01:00 committed by Matt Westcott
parent 3efbb152ca
commit 7a830bbe35
3 changed files with 6 additions and 0 deletions

View File

@ -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):

View File

@ -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):

View File

@ -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):