diff --git a/mayan/apps/common/apps.py b/mayan/apps/common/apps.py index 09caf48444..07c473f8c5 100644 --- a/mayan/apps/common/apps.py +++ b/mayan/apps/common/apps.py @@ -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 diff --git a/mayan/apps/converter/tests/test_views.py b/mayan/apps/converter/tests/test_views.py index bd7daa5d39..1ede5e71a6 100644 --- a/mayan/apps/converter/tests/test_views.py +++ b/mayan/apps/converter/tests/test_views.py @@ -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 } ) diff --git a/mayan/apps/documents/forms.py b/mayan/apps/documents/forms.py index 37444188bf..ab3dad828d 100644 --- a/mayan/apps/documents/forms.py +++ b/mayan/apps/documents/forms.py @@ -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): diff --git a/mayan/apps/documents/tests/test_utils.py b/mayan/apps/documents/tests/test_utils.py index 9a69b81199..8ea97d5079 100644 --- a/mayan/apps/documents/tests/test_utils.py +++ b/mayan/apps/documents/tests/test_utils.py @@ -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( diff --git a/mayan/apps/ocr/tests/test_views.py b/mayan/apps/ocr/tests/test_views.py index fd28e29d0c..4a05bc38e0 100644 --- a/mayan/apps/ocr/tests/test_views.py +++ b/mayan/apps/ocr/tests/test_views.py @@ -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