PEP8 cleanups.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
)
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user