Backport test case improvements
Add random primary key mixin. Split test case code into mixins. Make the view test case and the API test cases part of the same class hierachy. Update tests that failed due to the new import locations. Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -53,6 +53,7 @@ class ACLAPITestCase(DocumentTestMixin, BaseAPITestCase):
|
||||
)
|
||||
|
||||
def test_object_acl_delete_view(self):
|
||||
self.expected_content_type = None
|
||||
self._create_acl()
|
||||
|
||||
response = self.delete(
|
||||
@@ -87,6 +88,7 @@ class ACLAPITestCase(DocumentTestMixin, BaseAPITestCase):
|
||||
)
|
||||
|
||||
def test_object_acl_permission_delete_view(self):
|
||||
self.expected_content_type = None
|
||||
self._create_acl()
|
||||
permission = self.acl.permissions.first()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user