Skip to content

Commit

Permalink
added check for request name in response
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-karpovich committed Jul 16, 2020
1 parent ec6e048 commit 0e84a8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_view.py
Expand Up @@ -23,9 +23,9 @@ def test_json_batch(self):

responses = self.forced_auth_req('post', '/batch/', data={'batch': batch})
self.assertEqual(responses.status_code, status.HTTP_200_OK, msg=responses.data)
self.assertEqual("request1", responses.data[0]['name'])

responses_data = [json.loads(r['body']) for r in responses.data]

self.assertIn('ids', responses_data[1]['get'])
self.assertEqual(
responses_data[1]['get']['ids'],
Expand Down

0 comments on commit 0e84a8c

Please sign in to comment.