mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-01 19:03:18 +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._pre_setup()
|
||||||
tc.setUpClass()
|
tc.setUpClass()
|
||||||
tc.query("query { }", operation_name="QueryName")
|
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
|
# `operationName` field from https://graphql.org/learn/serving-over-http/#post-request
|
||||||
assert (
|
assert (
|
||||||
"operationName",
|
"operationName",
|
||||||
|
@ -66,7 +66,7 @@ def test_graphql_test_case_operation_name(post_mock):
|
||||||
@patch("graphene_django.utils.testing.Client.post")
|
@patch("graphene_django.utils.testing.Client.post")
|
||||||
def test_graphql_query_case_operation_name(post_mock):
|
def test_graphql_query_case_operation_name(post_mock):
|
||||||
graphql_query("query { }", operation_name="QueryName")
|
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
|
# `operationName` field from https://graphql.org/learn/serving-over-http/#post-request
|
||||||
assert (
|
assert (
|
||||||
"operationName",
|
"operationName",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user