diff --git a/graphene_django/utils/testing.py b/graphene_django/utils/testing.py index db3e9f4c5..0fdac7e16 100644 --- a/graphene_django/utils/testing.py +++ b/graphene_django/utils/testing.py @@ -54,8 +54,8 @@ def assertResponseNoErrors(self, resp): 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):