Skip to content

Commit

Permalink
Update failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
WinnyTroy committed Nov 12, 2019
1 parent 682b721 commit 77ee304
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion onadata/apps/api/tests/viewsets/test_attachment_viewset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
9 changes: 6 additions & 3 deletions onadata/apps/api/tests/viewsets/test_data_viewset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 77ee304

Please sign in to comment.