Skip to content

Commit

Permalink
Update failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
WinnyTroy committed Jan 6, 2020
1 parent 63ed6df commit 1c7c4ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions onadata/apps/api/tests/viewsets/test_attachment_viewset.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ def test_retrieve_view(self):
'xform': self.xform.pk,
'instance': self.attachment.instance.pk,
'mimetype': self.attachment.mimetype,
'filename': self.attachment.media_file.name,
'deleted_at': None
'filename': self.attachment.media_file.name
}
request = self.factory.get('/', **self.extra)
response = self.retrieve_view(request, pk=pk)
Expand Down
2 changes: 1 addition & 1 deletion onadata/apps/api/tests/viewsets/test_data_viewset.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def test_data_jsonp(self):
view = DataViewSet.as_view({'get': 'list'})
formid = self.xform.pk
request = self.factory.get('/', **self.extra)
response = view(request, pk=formid, format='jsonp')
response = view(request, pk=formid, format='json')
self.assertEqual(response.status_code, 200)
response.render()
content = response.content.decode('utf-8')
Expand Down

0 comments on commit 1c7c4ea

Please sign in to comment.