Fix documents app failing tests

Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-08-20 05:03:24 -04:00
parent f50d22b382
commit e7734def58
3 changed files with 57 additions and 58 deletions

View File

@@ -7,6 +7,7 @@ from django.utils.encoding import force_text
from django_downloadview import assert_download_response
from rest_framework import status
from mayan.apps.converter.tests.mixins import LayerTestMixin
from mayan.apps.rest_api.tests import BaseAPITestCase
from ..models import Document, DocumentType
@@ -29,7 +30,7 @@ from .literals import (
from .mixins import DocumentTestMixin
class DocumentTypeAPITestCase(DocumentTestMixin, BaseAPITestCase):
class DocumentTypeAPITestCase(LayerTestMixin, DocumentTestMixin, BaseAPITestCase):
auto_upload_document = False
auto_create_document_type = False