PEP8 cleanups.

This commit is contained in:
Roberto Rosario
2017-01-18 02:02:32 -04:00
parent bb8b606c92
commit 5007d77425
5 changed files with 9 additions and 11 deletions

View File

@@ -25,7 +25,7 @@ from .links import (
link_tools
)
from .literals import DELETE_STALE_UPLOADS_INTERVAL
from .menus import menu_about, menu_facet, menu_main, menu_tools, menu_user
from .menus import menu_about, menu_main, menu_tools, menu_user
from .licenses import * # NOQA
from .settings import setting_auto_logging
from .tasks import task_delete_stale_uploads # NOQA - Force task registration

View File

@@ -2,13 +2,12 @@ from __future__ import unicode_literals
from django.contrib.contenttypes.models import ContentType
from converter.models import Transformation
from converter.permissions import permission_transformation_delete
from documents.tests.test_views import GenericDocumentViewTestCase
from ..models import Transformation
from ..permissions import (
permission_transformation_create, permission_transformation_view
permission_transformation_create, permission_transformation_delete,
permission_transformation_view
)
from .literals import TEST_TRANSFORMATION_NAME, TEST_TRANSFORMATION_ARGUMENT
@@ -46,7 +45,7 @@ class TransformationViewsTestCase(GenericDocumentViewTestCase):
'app_label': 'documents', 'model': 'document',
'object_id': self.document.pk
}, data={
'name':TEST_TRANSFORMATION_NAME,
'name': TEST_TRANSFORMATION_NAME,
'arguments': TEST_TRANSFORMATION_ARGUMENT
}
)

View File

@@ -227,10 +227,10 @@ class DocumentPrintForm(forms.Form):
class DocumentPageNumberForm(forms.Form):
page = forms.ModelChoiceField(
queryset=None,
help_text=_('Page number from which all the transformation will be '
'cloned. Existing transformations will be lost.'
)
help_text=_(
'Page number from which all the transformation will be cloned. '
'Existing transformations will be lost.'
), queryset=None
)
def __init__(self, *args, **kwargs):

View File

@@ -12,7 +12,7 @@ class DocumentUtilsTestCase(BaseTestCase):
)
self.assertEqual(
parse_range('1-5'), [1, 2, 3, 4 ,5]
parse_range('1-5'), [1, 2, 3, 4, 5]
)
self.assertEqual(

View File

@@ -1,6 +1,5 @@
from __future__ import unicode_literals
from django.core import mail
from django.test import override_settings
from documents.tests.test_views import GenericDocumentViewTestCase