Remove tests * imports
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
@@ -4,7 +4,7 @@ from rest_framework import status
|
||||
|
||||
from mayan.apps.documents.permissions import permission_document_type_view
|
||||
from mayan.apps.documents.tests.mixins import DocumentTestMixin
|
||||
from mayan.apps.rest_api.tests import BaseAPITestCase
|
||||
from mayan.apps.rest_api.tests.base import BaseAPITestCase
|
||||
|
||||
from ..models import Workflow
|
||||
from ..permissions import (
|
||||
|
||||
@@ -2,7 +2,7 @@ from __future__ import unicode_literals
|
||||
|
||||
from actstream.models import Action
|
||||
|
||||
from mayan.apps.common.tests import GenericViewTestCase
|
||||
from mayan.apps.common.tests.base import GenericViewTestCase
|
||||
|
||||
from ..events import event_workflow_created, event_workflow_edited
|
||||
from ..models import Workflow
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from mayan.apps.documents.tests import GenericDocumentTestCase
|
||||
from mayan.apps.documents.tests.base import GenericDocumentTestCase
|
||||
from mayan.apps.document_indexing.models import Index, IndexInstanceNode
|
||||
|
||||
from ..models import Workflow
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from mayan.apps.common.tests import BaseTestCase
|
||||
from mayan.apps.common.tests.base import BaseTestCase
|
||||
|
||||
from .mixins import WorkflowTestMixin
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from mayan.apps.common.tests import GenericViewTestCase
|
||||
from mayan.apps.common.tests.base import GenericViewTestCase
|
||||
|
||||
from ..permissions import permission_workflow_edit
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from mayan.apps.common.tests import GenericViewTestCase
|
||||
from mayan.apps.common.tests.base import GenericViewTestCase
|
||||
|
||||
from ..models import WorkflowState
|
||||
from ..permissions import permission_workflow_edit, permission_workflow_view
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from mayan.apps.common.tests import GenericViewTestCase
|
||||
from mayan.apps.documents.tests import GenericDocumentViewTestCase
|
||||
from mayan.apps.common.tests.base import GenericViewTestCase
|
||||
from mayan.apps.documents.tests.base import GenericDocumentViewTestCase
|
||||
|
||||
from ..models import WorkflowTransition
|
||||
from ..permissions import (
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from mayan.apps.common.tests import GenericViewTestCase
|
||||
from mayan.apps.documents.tests import GenericDocumentViewTestCase
|
||||
from mayan.apps.common.tests.base import GenericViewTestCase
|
||||
from mayan.apps.documents.tests.base import GenericDocumentViewTestCase
|
||||
|
||||
from ..models import Workflow
|
||||
from ..permissions import (
|
||||
|
||||
@@ -11,7 +11,6 @@ from django.utils.translation import ugettext_lazy as _
|
||||
from .classes import WorkflowAction
|
||||
from .exceptions import WorkflowStateActionError
|
||||
|
||||
__all__ = ('DocumentPropertiesEditAction', 'HTTPPostAction',)
|
||||
logger = logging.getLogger(__name__)
|
||||
DEFAULT_TIMEOUT = 4 # 4 seconds
|
||||
|
||||
@@ -37,7 +36,7 @@ class DocumentPropertiesEditAction(WorkflowAction):
|
||||
},
|
||||
}
|
||||
field_order = ('document_label', 'document_description')
|
||||
label = _('Modify the properties of the document')
|
||||
label = _('Modify document properties')
|
||||
widgets = {
|
||||
'document_description': {
|
||||
'class': 'django.forms.widgets.Textarea', 'kwargs': {
|
||||
|
||||
Reference in New Issue
Block a user