Correct order of super in file caching test mixin
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
@@ -18,14 +18,14 @@ test_storage = None
|
|||||||
|
|
||||||
class CacheTestMixin(object):
|
class CacheTestMixin(object):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
super(CacheTestMixin, self).setUp()
|
||||||
global test_storage
|
global test_storage
|
||||||
self.temporary_directory = mkdtemp()
|
self.temporary_directory = mkdtemp()
|
||||||
test_storage = FileSystemStorage(location=self.temporary_directory)
|
test_storage = FileSystemStorage(location=self.temporary_directory)
|
||||||
super(CacheTestMixin, self).setUp()
|
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
super(CacheTestMixin, self).tearDown()
|
|
||||||
fs_cleanup(filename=self.temporary_directory)
|
fs_cleanup(filename=self.temporary_directory)
|
||||||
|
super(CacheTestMixin, self).tearDown()
|
||||||
|
|
||||||
def _create_test_cache(self):
|
def _create_test_cache(self):
|
||||||
self.test_cache = Cache.objects.create(
|
self.test_cache = Cache.objects.create(
|
||||||
|
|||||||
Reference in New Issue
Block a user