mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-11 08:42:32 +03:00
Update testing.py
This commit is contained in:
parent
030a8e7400
commit
dd59975d0d
|
@ -109,8 +109,8 @@ class GraphQLTestCase(TestCase):
|
||||||
the call was fine.
|
the call was fine.
|
||||||
:resp HttpResponse: Response
|
:resp HttpResponse: Response
|
||||||
"""
|
"""
|
||||||
self.assertEqual(resp.status_code, 200)
|
|
||||||
content = json.loads(resp.content)
|
content = json.loads(resp.content)
|
||||||
|
self.assertEqual(resp.status_code, 200, msg or content)
|
||||||
self.assertNotIn("errors", list(content.keys()), msg or content)
|
self.assertNotIn("errors", list(content.keys()), msg or content)
|
||||||
|
|
||||||
def assertResponseHasErrors(self, resp, msg=None):
|
def assertResponseHasErrors(self, resp, msg=None):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user