We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 921bc12 commit 5adf64eCopy full SHA for 5adf64e
tests/quart/test_graphqlview.py
@@ -1,4 +1,5 @@
1
import json
2
+import sys
3
4
# from io import StringIO
5
from urllib.parse import urlencode
@@ -36,7 +37,11 @@ async def execute_client(
36
37
headers: Headers = None,
38
**url_params
39
) -> Response:
- async with app.test_request_context("/", method=method):
40
+ if sys.version_info >= (3, 7):
41
+ test_request_context = app.test_request_context("/", method=method)
42
+ else:
43
+ test_request_context = app.test_request_context(method, "/")
44
+ async with test_request_context:
45
string = url_for("graphql")
46
47
if url_params:
0 commit comments