summaryrefslogtreecommitdiff
path: root/tests/staticfiles_tests/test_storage.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/staticfiles_tests/test_storage.py')
-rw-r--r--tests/staticfiles_tests/test_storage.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/staticfiles_tests/test_storage.py b/tests/staticfiles_tests/test_storage.py
index 2bbe912507..7e7b31fa67 100644
--- a/tests/staticfiles_tests/test_storage.py
+++ b/tests/staticfiles_tests/test_storage.py
@@ -27,7 +27,7 @@ class TestHashedFiles:
def setUp(self):
self._max_post_process_passes = storage.staticfiles_storage.max_post_process_passes
- super(TestHashedFiles, self).setUp()
+ super().setUp()
def tearDown(self):
# Clear hashed files to avoid side effects among tests.
@@ -305,7 +305,7 @@ class TestExtraPatternsCachedStorage(CollectionTestCase):
def setUp(self):
storage.staticfiles_storage.hashed_files.clear() # avoid cache interference
- super(TestExtraPatternsCachedStorage, self).setUp()
+ super().setUp()
def cached_file_path(self, path):
fullpath = self.render_template(self.static_template_snippet(path))
@@ -338,7 +338,7 @@ class TestCollectionManifestStorage(TestHashedFiles, CollectionTestCase):
Tests for the Cache busting storage
"""
def setUp(self):
- super(TestCollectionManifestStorage, self).setUp()
+ super().setUp()
temp_dir = tempfile.mkdtemp()
os.makedirs(os.path.join(temp_dir, 'test'))
@@ -359,7 +359,7 @@ class TestCollectionManifestStorage(TestHashedFiles, CollectionTestCase):
os.unlink(self._clear_filename)
storage.staticfiles_storage.manifest_strict = self._manifest_strict
- super(TestCollectionManifestStorage, self).tearDown()
+ super().tearDown()
def assertPostCondition(self):
hashed_files = storage.staticfiles_storage.hashed_files
@@ -446,7 +446,7 @@ class TestCollectionSimpleCachedStorage(CollectionTestCase):
def setUp(self):
storage.staticfiles_storage.hashed_files.clear() # avoid cache interference
- super(TestCollectionSimpleCachedStorage, self).setUp()
+ super().setUp()
def test_template_tag_return(self):
"""
@@ -474,7 +474,7 @@ class CustomStaticFilesStorage(storage.StaticFilesStorage):
def __init__(self, *args, **kwargs):
kwargs['file_permissions_mode'] = 0o640
kwargs['directory_permissions_mode'] = 0o740
- super(CustomStaticFilesStorage, self).__init__(*args, **kwargs)
+ super().__init__(*args, **kwargs)
@unittest.skipIf(sys.platform.startswith('win'), "Windows only partially supports chmod.")
@@ -489,11 +489,11 @@ class TestStaticFilePermissions(CollectionTestCase):
def setUp(self):
self.umask = 0o027
self.old_umask = os.umask(self.umask)
- super(TestStaticFilePermissions, self).setUp()
+ super().setUp()
def tearDown(self):
os.umask(self.old_umask)
- super(TestStaticFilePermissions, self).tearDown()
+ super().tearDown()
# Don't run collectstatic command in this test class.
def run_collectstatic(self, **kwargs):
@@ -556,12 +556,12 @@ class TestCollectionHashedFilesCache(CollectionTestCase):
)
with open(self.testimage_path, 'r+b') as f:
self._orig_image_content = f.read()
- super(TestCollectionHashedFilesCache, self).setUp()
+ super().setUp()
def tearDown(self):
with open(self.testimage_path, 'w+b') as f:
f.write(self._orig_image_content)
- super(TestCollectionHashedFilesCache, self).tearDown()
+ super().tearDown()
def test_file_change_after_collectstatic(self):
finders.get_finder.cache_clear()