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 18:37:32 -04:00
parent 8ce4d5fb30
commit 05ceeca8ff
8 changed files with 36 additions and 22 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ class BaseAPITestCase(APITestCase, GenericViewTestCase):
"""
API test case class that invalidates permissions and smart settings
"""
expected_content_type = None
expected_content_types = None
def setUp(self):
super(BaseAPITestCase, self).setUp()