From 77cae991f4fc47c7a805751ddd99f805167d53ae Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Tue, 12 Nov 2019 01:45:04 -0400 Subject: [PATCH] PEP8 cleanups Signed-off-by: Roberto Rosario --- mayan/apps/acls/tests/mixins.py | 10 ---------- mayan/apps/dependencies/classes.py | 2 ++ mayan/apps/document_signatures/tests/test_views.py | 1 - .../document_states/tests/test_workflow_actions.py | 2 -- 4 files changed, 2 insertions(+), 13 deletions(-) diff --git a/mayan/apps/acls/tests/mixins.py b/mayan/apps/acls/tests/mixins.py index 7b9ccbca5b..642baab205 100644 --- a/mayan/apps/acls/tests/mixins.py +++ b/mayan/apps/acls/tests/mixins.py @@ -44,16 +44,6 @@ class ACLTestMixin(PermissionTestMixin, RoleTestMixin, TestModelTestMixin): if self.auto_create_test_object: self._setup_test_object() - def tearDown(self): - # Deregister the permissions of the ephimeral test models - # this avoids their Content Type from being looked up - # in subsequent tests where they don't exists due to the database - # transaction rollback. - #for model in self._test_models: - # ModelPermission.deregister(model=model) - - super(ACLTestMixin, self).tearDown() - def _create_test_acl(self): self.test_acl = AccessControlList.objects.create( content_object=self.test_object, role=self.test_role diff --git a/mayan/apps/dependencies/classes.py b/mayan/apps/dependencies/classes.py index 02d3f07bb9..bb2173546a 100644 --- a/mayan/apps/dependencies/classes.py +++ b/mayan/apps/dependencies/classes.py @@ -30,6 +30,8 @@ from mayan.apps.storage.utils import mkdtemp from .algorithms import HashAlgorithm from .exceptions import DependenciesException +logger = logging.getLogger(__name__) + class Provider(object): """Base provider class""" diff --git a/mayan/apps/document_signatures/tests/test_views.py b/mayan/apps/document_signatures/tests/test_views.py index 3bf13518ed..1e3dc0c7fb 100644 --- a/mayan/apps/document_signatures/tests/test_views.py +++ b/mayan/apps/document_signatures/tests/test_views.py @@ -75,7 +75,6 @@ class SignaturesViewTestCase( def test_signature_detail_view_no_permission(self): self._create_test_key_public() - self.test_document_path = TEST_DOCUMENT_PATH self.upload_document() diff --git a/mayan/apps/document_states/tests/test_workflow_actions.py b/mayan/apps/document_states/tests/test_workflow_actions.py index 3c88d7f817..4bb93d2611 100644 --- a/mayan/apps/document_states/tests/test_workflow_actions.py +++ b/mayan/apps/document_states/tests/test_workflow_actions.py @@ -3,11 +3,9 @@ from __future__ import unicode_literals import json import mock -from mayan.apps.common.tests.base import GenericViewTestCase from mayan.apps.common.tests.mixins import TestServerTestCaseMixin from mayan.apps.common.tests.mocks import request_method_factory from mayan.apps.document_states.tests.mixins import WorkflowTestMixin -from mayan.apps.document_states.tests.base import ActionTestCase from mayan.apps.documents.tests.base import GenericDocumentViewTestCase from ..workflow_actions import HTTPPostAction