From dd59975d0d352368d837b8dc1026428e5327d239 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Tue, 24 Nov 2020 14:07:23 -0500 Subject: [PATCH] Update testing.py --- graphene_django/utils/testing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphene_django/utils/testing.py b/graphene_django/utils/testing.py index 30be93c..871c440 100644 --- a/graphene_django/utils/testing.py +++ b/graphene_django/utils/testing.py @@ -109,8 +109,8 @@ class GraphQLTestCase(TestCase): the call was fine. :resp HttpResponse: Response """ - self.assertEqual(resp.status_code, 200) content = json.loads(resp.content) + self.assertEqual(resp.status_code, 200, msg or content) self.assertNotIn("errors", list(content.keys()), msg or content) def assertResponseHasErrors(self, resp, msg=None):