mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-25 11:04:11 +03:00
Asserting status code before decoding json in assertResponseNoEr… (#708)
This commit is contained in:
parent
b7e4937775
commit
224725039b
|
@ -54,8 +54,8 @@ class GraphQLTestCase(TestCase):
|
|||
the call was fine.
|
||||
:resp HttpResponse: Response
|
||||
"""
|
||||
content = json.loads(resp.content)
|
||||
self.assertEqual(resp.status_code, 200)
|
||||
content = json.loads(resp.content)
|
||||
self.assertNotIn("errors", list(content.keys()))
|
||||
|
||||
def assertResponseHasErrors(self, resp):
|
||||
|
|
Loading…
Reference in New Issue
Block a user