Skip to content

Commit

Permalink
Fixed async executor test in Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Jul 19, 2018
1 parent 6c9db81 commit 8d1d8c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions graphql/execution/tests/test_executor_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def test_synchronous_error_nulls_out_error_subtrees():
syncError
syncReturnError
syncReturnErrorList
async
asyncBasic
asyncReject
asyncEmptyReject
asyncReturnError
Expand Down Expand Up @@ -196,7 +196,7 @@ def syncReturnErrorList(self):
Exception("Error getting syncReturnErrorList3"),
]

def async(self):
def asyncBasic(self):
# type: () -> Promise
return resolved("async")

Expand All @@ -220,7 +220,7 @@ def asyncReturnError(self):
"syncError": GraphQLField(GraphQLString),
"syncReturnError": GraphQLField(GraphQLString),
"syncReturnErrorList": GraphQLField(GraphQLList(GraphQLString)),
"async": GraphQLField(GraphQLString),
"asyncBasic": GraphQLField(GraphQLString),
"asyncReject": GraphQLField(GraphQLString),
"asyncEmptyReject": GraphQLField(GraphQLString),
"asyncReturnError": GraphQLField(GraphQLString),
Expand All @@ -236,7 +236,7 @@ def sort_key(item):
def handle_results(result):
# type: (ExecutionResult) -> None
assert result.data == {
"async": "async",
"asyncBasic": "async",
"asyncEmptyReject": None,
"asyncReject": None,
"asyncReturnError": None,
Expand Down

0 comments on commit 8d1d8c4

Please sign in to comment.