Snake case formatting fix

This commit is contained in:
lilac-supernova-2 2023-08-26 03:12:35 -04:00 committed by GitHub
parent 19d5558ed7
commit 34db851230
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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