Allow multitle expected_content_types in tests

Some tests return 'text/html' or 'text/html; charset=utf-8'
which are essentially the same if they are tested in debug mode.

Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-11-11 02:20:58 -04:00
parent 6bd672a756
commit b0677a8bda
9 changed files with 37 additions and 23 deletions

View File

@@ -306,7 +306,7 @@ class DetachedSignaturesViewTestCase(
permission=permission_document_version_signature_download
)
self.expected_content_type = 'application/octet-stream; charset=utf-8'
self.expected_content_types = ('application/octet-stream; charset=utf-8',)
response = self._request_test_document_version_signature_download_view()