mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-04-13 05:34:20 +03:00
Fix tests on python 3.7
This commit is contained in:
parent
81787d9cdd
commit
0ebc899084
|
@ -54,7 +54,7 @@ def test_graphql_test_case_operation_name(post_mock):
|
|||
tc._pre_setup()
|
||||
tc.setUpClass()
|
||||
tc.query("query { }", operation_name="QueryName")
|
||||
body = json.loads(post_mock.call_args.args[1])
|
||||
body = json.loads(post_mock.call_args[0][1])
|
||||
# `operationName` field from https://graphql.org/learn/serving-over-http/#post-request
|
||||
assert (
|
||||
"operationName",
|
||||
|
@ -66,7 +66,7 @@ def test_graphql_test_case_operation_name(post_mock):
|
|||
@patch("graphene_django.utils.testing.Client.post")
|
||||
def test_graphql_query_case_operation_name(post_mock):
|
||||
graphql_query("query { }", operation_name="QueryName")
|
||||
body = json.loads(post_mock.call_args.args[1])
|
||||
body = json.loads(post_mock.call_args[0][1])
|
||||
# `operationName` field from https://graphql.org/learn/serving-over-http/#post-request
|
||||
assert (
|
||||
"operationName",
|
||||
|
|
Loading…
Reference in New Issue
Block a user