Fix failing tests

Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-09-24 17:17:21 -04:00
parent b03758ed8b
commit 7695178992
4 changed files with 4 additions and 4 deletions

View File

@@ -2,7 +2,7 @@ from __future__ import unicode_literals
from django.contrib.contenttypes.models import ContentType
from mayan.apps.document_states.tests.test_actions import ActionTestCase
from mayan.apps.document_states.tests.test_workflow_actions import ActionTestCase
from mayan.apps.documents.permissions import permission_document_view
from ..workflow_actions import (

View File

@@ -2,7 +2,7 @@ from __future__ import unicode_literals
from mayan.apps.common.tests import GenericViewTestCase
from mayan.apps.document_states.tests.mixins import WorkflowTestMixin
from mayan.apps.document_states.tests.test_actions import ActionTestCase
from mayan.apps.document_states.tests.test_workflow_actions import ActionTestCase
from ..models import Cabinet
from ..workflow_actions import CabinetAddAction, CabinetRemoveAction

View File

@@ -14,7 +14,7 @@ from ..models import DocumentPageOCRContent
class OCREventsTestCase(GenericDocumentTestCase):
def test_document_content_deleted_event(self):
Action.objects.all().delete()
DocumentPageOCRContent.objects.delete_ocr_content_for(
DocumentPageOCRContent.objects.delete_content_for(
document=self.test_document
)

View File

@@ -2,7 +2,7 @@ from __future__ import unicode_literals
from mayan.apps.common.tests import GenericViewTestCase
from mayan.apps.document_states.tests.mixins import WorkflowTestMixin
from mayan.apps.document_states.tests.test_actions import ActionTestCase
from mayan.apps.document_states.tests.test_workflow_actions import ActionTestCase
from ..models import Tag
from ..workflow_actions import AttachTagAction, RemoveTagAction