PEP8 cleanups.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-09-05 04:56:39 -04:00
parent 4b2226cf04
commit 64ca5a623f
24 changed files with 28 additions and 44 deletions

View File

@@ -15,6 +15,7 @@ class ActionError(BaseCommonException):
it is used to announce that one item in the queryset failed to process.
"""
class CompressionFileError(BaseCommonException):
"""
Base exception for file decompression class

View File

@@ -45,6 +45,7 @@ def check_sqlite():
def get_collections():
return Collection.get_all()
@register.filter
def get_encoded_parameter(item, parameters_dict):
result = {}

View File

@@ -1,15 +1,13 @@
from __future__ import unicode_literals
from common.tests import BaseTestCase
from django.test import override_settings
from ..compressed_files import Archive, TarArchive, ZipArchive
from .literals import (
TEST_COMPRESSED_FILE_CONTENTS, TEST_FILE_CONTENTS_1, TEST_FILE_CONTENTS_2,
TEST_FILE3_PATH, TEST_FILENAME1, TEST_FILENAME2, TEST_FILENAME3,
TEST_TAR_BZ2_FILE_PATH, TEST_TAR_FILE_PATH, TEST_TAR_GZ_FILE_PATH,
TEST_ZIP_FILE_PATH
TEST_COMPRESSED_FILE_CONTENTS, TEST_FILE_CONTENTS_1, TEST_FILE3_PATH,
TEST_FILENAME1, TEST_FILENAME3, TEST_TAR_BZ2_FILE_PATH,
TEST_TAR_FILE_PATH, TEST_TAR_GZ_FILE_PATH, TEST_ZIP_FILE_PATH
)
@@ -43,7 +41,8 @@ class TarArchiveClassTestCase(BaseTestCase):
with open(self.archive_path) as file_object:
archive = Archive.open(file_object=file_object)
self.assertEqual(
archive.member_contents(filename=self.member_name), self.member_contents
archive.member_contents(filename=self.member_name),
self.member_contents
)
def test_open_member(self):

View File

@@ -10,7 +10,6 @@ from django.conf import settings
from django.urls import resolve as django_resolve
from django.urls.base import get_script_prefix
from django.utils.datastructures import MultiValueDict
from django.utils.encoding import force_text
from django.utils.http import (
urlencode as django_urlencode, urlquote as django_urlquote
)