diff --git a/mayan/apps/django_gpg/tests/test_views.py b/mayan/apps/django_gpg/tests/test_views.py index 7f65c1329e..3a17209faf 100644 --- a/mayan/apps/django_gpg/tests/test_views.py +++ b/mayan/apps/django_gpg/tests/test_views.py @@ -32,6 +32,8 @@ class KeyViewTestCase(GenericViewTestCase): self.role.permissions.add(permission_key_download.stored_permission) + self.expected_content_type = 'application/octet-stream; charset=utf-8' + response = self.get( viewname='django_gpg:key_download', args=(key.pk,) ) diff --git a/mayan/apps/document_signatures/tests/test_views.py b/mayan/apps/document_signatures/tests/test_views.py index 2b0ff6b0f0..a654bc23d9 100644 --- a/mayan/apps/document_signatures/tests/test_views.py +++ b/mayan/apps/document_signatures/tests/test_views.py @@ -213,6 +213,8 @@ class SignaturesViewTestCase(GenericDocumentViewTestCase): permission_document_version_signature_download.stored_permission ) + self.expected_content_type = 'application/octet-stream; charset=utf-8' + response = self.get( 'signatures:document_version_signature_download', args=(signature.pk,), diff --git a/mayan/apps/documents/tests/test_events.py b/mayan/apps/documents/tests/test_events.py index 3824de40ee..224b0435ed 100644 --- a/mayan/apps/documents/tests/test_events.py +++ b/mayan/apps/documents/tests/test_events.py @@ -52,6 +52,9 @@ class DocumentEventsTestCase(GenericDocumentViewTestCase): self.role.permissions.add( permission_document_download.stored_permission ) + + self.expected_content_type = 'image/png' + self.post( 'documents:document_download', args=(self.document.pk,), )