From b827155840d68bfe8e946da6b267753907cd5612 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sun, 20 Oct 2019 21:09:21 -0400 Subject: [PATCH] Remove explicit expected_content_type These are now handled by BaseAPITestCase. Signed-off-by: Roberto Rosario --- mayan/apps/acls/tests/test_api.py | 2 -- mayan/apps/documents/tests/test_api.py | 5 ----- 2 files changed, 7 deletions(-) diff --git a/mayan/apps/acls/tests/test_api.py b/mayan/apps/acls/tests/test_api.py index 81dfe34c24..1cbf63652f 100644 --- a/mayan/apps/acls/tests/test_api.py +++ b/mayan/apps/acls/tests/test_api.py @@ -76,7 +76,6 @@ class ACLAPITestCase(ACLTestMixin, BaseAPITestCase): ) def test_acl_delete_api_view_with_access(self): - self.expected_content_type = None self._create_test_acl() self.grant_access(self.test_object, permission=permission_acl_edit) @@ -100,7 +99,6 @@ class ACLAPITestCase(ACLTestMixin, BaseAPITestCase): ) def test_acl_permission_delete_view_with_access(self): - self.expected_content_type = None self._create_test_acl() self.test_acl.permissions.add(self.test_permission.stored_permission) diff --git a/mayan/apps/documents/tests/test_api.py b/mayan/apps/documents/tests/test_api.py index dea50b2618..368ae6186b 100644 --- a/mayan/apps/documents/tests/test_api.py +++ b/mayan/apps/documents/tests/test_api.py @@ -91,7 +91,6 @@ class DocumentTypeAPIViewTestCase( self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_document_type_api_delete_view_with_access(self): - self.expected_content_type = None self.test_document_type = DocumentType.objects.create( label=TEST_DOCUMENT_TYPE_LABEL ) @@ -610,8 +609,6 @@ class TrashedDocumentAPIViewTestCase( self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_document_api_trash_view_with_access(self): - self.expected_content_type = None - self.upload_document() self.grant_access( obj=self.test_document, permission=permission_document_trash @@ -634,8 +631,6 @@ class TrashedDocumentAPIViewTestCase( self.assertEqual(Document.trash.count(), 1) def test_trashed_document_api_delete_view_with_access(self): - self.expected_content_type = None - self.upload_document() self.test_document.delete() self.grant_access(