diff --git a/onadata/apps/api/tests/viewsets/test_attachment_viewset.py b/onadata/apps/api/tests/viewsets/test_attachment_viewset.py index 243e37e9c5..60d12c9a49 100644 --- a/onadata/apps/api/tests/viewsets/test_attachment_viewset.py +++ b/onadata/apps/api/tests/viewsets/test_attachment_viewset.py @@ -49,7 +49,8 @@ def test_retrieve_view(self): 'xform': self.xform.pk, 'instance': self.attachment.instance.pk, 'mimetype': self.attachment.mimetype, - 'filename': self.attachment.media_file.name + 'filename': self.attachment.media_file.name, + 'deleted_at': None } request = self.factory.get('/', **self.extra) response = self.retrieve_view(request, pk=pk) diff --git a/onadata/apps/api/tests/viewsets/test_data_viewset.py b/onadata/apps/api/tests/viewsets/test_data_viewset.py index ef71918f8e..8f2f968a94 100644 --- a/onadata/apps/api/tests/viewsets/test_data_viewset.py +++ b/onadata/apps/api/tests/viewsets/test_data_viewset.py @@ -1265,7 +1265,8 @@ def test_same_submission_with_different_attachments(self): 'filename': attachment.media_file.name, 'name': attachment.name, 'id': attachment.pk, - 'xform': xform.id} + 'xform': xform.id, + 'deleted_at': None} ], '_geolocation': [None, None], '_xform_id_string': xform.id_string, @@ -1297,7 +1298,8 @@ def test_same_submission_with_different_attachments(self): 'filename': attachment.media_file.name, 'name': attachment.name, 'id': attachment.pk, - 'xform': xform.id + 'xform': xform.id, + 'deleted_at': None }] self.maxDiff = None response = view(request, pk=formid) @@ -1336,7 +1338,8 @@ def test_data_w_attachment(self): 'filename': self.attachment.media_file.name, 'name': self.attachment.name, 'id': self.attachment.pk, - 'xform': self.xform.id} + 'xform': self.xform.id, + 'deleted_at': None}, ], '_geolocation': [None, None], '_xform_id_string': 'transportation_2011_07_25',