Skip to content

Commit

Permalink
Merge pull request #1335 Remove no longer required test in floip view…
Browse files Browse the repository at this point in the history
…sets
  • Loading branch information
ukanga authored Mar 28, 2018
2 parents e2520ab + 4a61610 commit 5eeafcf
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions onadata/apps/api/tests/viewsets/test_floip_viewset.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,31 +153,6 @@ def test_publishing_responses(self):
+ floip_data['id'] + '/responses')
self.assertEqual(count + 2, Instance.objects.count())

def test_publish_missing_resource_name(self): # pylint: disable=C0103
"""
Test publishing a descriptor with missing resource name.
"""
view = FloipViewSet.as_view({'post': 'create'})
path = os.path.join(
os.path.dirname(__file__), "../", "fixtures",
"flow-results-missing-resource-name.json")
with open(path) as json_file:
post_data = json_file.read()
request = self.factory.post(
'/',
data=post_data,
content_type='application/vnd.api+json',
**self.extra)
response = view(request)
response.render()
self.assertEqual(response.status_code, 400)
self.assertEqual(response['Content-Type'],
'application/vnd.api+json')
self.assertEqual(
response.data['text'],
"The data resource 'standard_test_survey-data'"
" is not defined.")

def test_publish_number_question_names(self): # pylint: disable=C0103
"""
Test publishing a descriptor with question identifiers that start with
Expand Down

0 comments on commit 5eeafcf

Please sign in to comment.