PEP8 cleanups
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"""
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user