From bf29846b5428eb287222590248a32cf7b91911f8 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Fri, 21 Oct 2016 04:27:41 -0400 Subject: [PATCH] Set the proper expected response content type in the document download views tests. --- mayan/apps/documents/tests/test_views.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mayan/apps/documents/tests/test_views.py b/mayan/apps/documents/tests/test_views.py index 3640c67e76..4645de3501 100644 --- a/mayan/apps/documents/tests/test_views.py +++ b/mayan/apps/documents/tests/test_views.py @@ -247,6 +247,9 @@ class DocumentsViewsTestCase(GenericDocumentViewTestCase): permission_document_download.stored_permission ) + # Set the expected_content_type for common.tests.mixins.ContentTypeCheckMixin + self.expected_content_type = self.document.file_mimetype + response = self.post( 'documents:document_download', args=(self.document.pk,) ) @@ -284,6 +287,9 @@ class DocumentsViewsTestCase(GenericDocumentViewTestCase): permission_document_download.stored_permission ) + # Set the expected_content_type for common.tests.mixins.ContentTypeCheckMixin + self.expected_content_type = self.document.file_mimetype + response = self.post( 'documents:document_multiple_download', data={'id_list': self.document.pk} @@ -323,6 +329,9 @@ class DocumentsViewsTestCase(GenericDocumentViewTestCase): permission_document_download.stored_permission ) + # Set the expected_content_type for common.tests.mixins.ContentTypeCheckMixin + self.expected_content_type = self.document.file_mimetype + response = self.post( 'documents:document_version_download', args=( self.document.latest_version.pk,