diff --git a/mayan/apps/file_caching/tests/mixins.py b/mayan/apps/file_caching/tests/mixins.py index 480b28249d..8afe491dba 100644 --- a/mayan/apps/file_caching/tests/mixins.py +++ b/mayan/apps/file_caching/tests/mixins.py @@ -18,14 +18,14 @@ test_storage = None class CacheTestMixin(object): def setUp(self): + super(CacheTestMixin, self).setUp() global test_storage self.temporary_directory = mkdtemp() test_storage = FileSystemStorage(location=self.temporary_directory) - super(CacheTestMixin, self).setUp() def tearDown(self): - super(CacheTestMixin, self).tearDown() fs_cleanup(filename=self.temporary_directory) + super(CacheTestMixin, self).tearDown() def _create_test_cache(self): self.test_cache = Cache.objects.create(