diff --git a/mayan/apps/common/tests/decorators.py b/mayan/apps/common/tests/decorators.py index 9c1b5b8186..264e5cc7cf 100644 --- a/mayan/apps/common/tests/decorators.py +++ b/mayan/apps/common/tests/decorators.py @@ -1,5 +1,5 @@ def skip_file_descriptor_check(func): - def func_wrapper(item): - item._skip_file_descriptor_test = True - return func(item) - return func_wrapper + def func_wrapper(item): + item._skip_file_descriptor_test = True + return func(item) + return func_wrapper diff --git a/mayan/apps/common/tests/mixins.py b/mayan/apps/common/tests/mixins.py index 9140288b49..d5bfaf2e31 100644 --- a/mayan/apps/common/tests/mixins.py +++ b/mayan/apps/common/tests/mixins.py @@ -66,7 +66,7 @@ class TempfileCheckMixin(object): msg='Orphan temporary file. The number of temporary files and/or ' 'directories at the start and at the end of the test are not the ' 'same. Orphan entries: {}'.format( - ','.join(final_temporary_items-self._temporary_items) + ','.join(final_temporary_items - self._temporary_items) ) ) super(TempfileCheckMixin, self).tearDown() diff --git a/mayan/apps/common/tests/test_views.py b/mayan/apps/common/tests/test_views.py index 9541d06436..6fa95a8721 100644 --- a/mayan/apps/common/tests/test_views.py +++ b/mayan/apps/common/tests/test_views.py @@ -6,7 +6,6 @@ from django.contrib.auth.models import Group from django.core.urlresolvers import clear_url_caches, reverse from django.http import HttpResponse from django.template import Context, Template -from django.test import TestCase from permissions import Permission from permissions.models import Role diff --git a/mayan/apps/events/tests/test_views.py b/mayan/apps/events/tests/test_views.py index e136607b75..7be4003b80 100644 --- a/mayan/apps/events/tests/test_views.py +++ b/mayan/apps/events/tests/test_views.py @@ -2,7 +2,6 @@ from __future__ import absolute_import, unicode_literals from django.contrib.contenttypes.models import ContentType -from acls.models import AccessControlList from documents.tests.test_views import GenericDocumentViewTestCase from user_management.tests import ( TEST_USER_USERNAME, TEST_USER_PASSWORD