Update the expected HTML content type of failing view tests.

This commit is contained in:
Roberto Rosario
2016-10-24 02:26:43 -04:00
parent 07c8d36545
commit 3db472b0cd
3 changed files with 7 additions and 0 deletions

View File

@@ -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,)
)

View File

@@ -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,),

View File

@@ -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,),
)