From 34db851230160e0ececa0e12f6cd14eabfe03e9a Mon Sep 17 00:00:00 2001 From: lilac-supernova-2 <143229315+lilac-supernova-2@users.noreply.github.com> Date: Sat, 26 Aug 2023 03:12:35 -0400 Subject: [PATCH] Snake case formatting fix --- graphene_django/utils/testing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphene_django/utils/testing.py b/graphene_django/utils/testing.py index ad9ff35..e1e52f5 100644 --- a/graphene_django/utils/testing.py +++ b/graphene_django/utils/testing.py @@ -128,7 +128,7 @@ class GraphQLTestMixin: ) self.client = client - def assertResponseNoErrors(self, resp, msg=None): + def assert_response_no_errors(self, resp, msg=None): """ Assert that the call went through correctly. 200 means the syntax is ok, if there are no `errors`, the call was fine. @@ -138,7 +138,7 @@ class GraphQLTestMixin: self.assertEqual(resp.status_code, 200, msg or content) self.assertNotIn("errors", list(content.keys()), msg or content) - def assertResponseHasErrors(self, resp, msg=None): + def assert_response_has_errors(self, resp, msg=None): """ Assert that the call was failing. Take care: Even with errors, GraphQL returns status 200! :resp HttpResponse: Response