@@ -96,7 +96,7 @@ async def is_type_of_used_to_resolve_runtime_type_for_interface():
96
96
types = [CatType , DogType ],
97
97
)
98
98
99
- query = """
99
+ source = """
100
100
{
101
101
pets {
102
102
name
@@ -110,7 +110,7 @@ async def is_type_of_used_to_resolve_runtime_type_for_interface():
110
110
}
111
111
"""
112
112
113
- result = await graphql (schema , query )
113
+ result = await graphql (schema = schema , source = source )
114
114
assert result == (
115
115
{
116
116
"pets" : [
@@ -161,7 +161,7 @@ async def is_type_of_with_async_error():
161
161
types = [CatType , DogType ],
162
162
)
163
163
164
- query = """
164
+ source = """
165
165
{
166
166
pets {
167
167
name
@@ -175,7 +175,7 @@ async def is_type_of_with_async_error():
175
175
}
176
176
"""
177
177
178
- result = await graphql (schema , query )
178
+ result = await graphql (schema = schema , source = source )
179
179
# Note: we get two errors, because first all types are resolved
180
180
# and only then they are checked sequentially
181
181
assert result .data == {"pets" : [None , None ]}
@@ -229,7 +229,7 @@ async def is_type_of_used_to_resolve_runtime_type_for_union():
229
229
)
230
230
)
231
231
232
- query = """
232
+ source = """
233
233
{
234
234
pets {
235
235
... on Dog {
@@ -244,7 +244,7 @@ async def is_type_of_used_to_resolve_runtime_type_for_union():
244
244
}
245
245
"""
246
246
247
- result = await graphql (schema , query )
247
+ result = await graphql (schema = schema , source = source )
248
248
assert result == (
249
249
{
250
250
"pets" : [
@@ -306,7 +306,7 @@ async def resolve_type_on_interface_yields_useful_error():
306
306
types = [CatType , DogType ],
307
307
)
308
308
309
- query = """
309
+ source = """
310
310
{
311
311
pets {
312
312
name
@@ -320,7 +320,7 @@ async def resolve_type_on_interface_yields_useful_error():
320
320
}
321
321
"""
322
322
323
- result = await graphql (schema , query )
323
+ result = await graphql (schema = schema , source = source )
324
324
assert result .data == {
325
325
"pets" : [
326
326
{"name" : "Odie" , "woofs" : True },
@@ -382,7 +382,7 @@ async def resolve_type_on_union_yields_useful_error():
382
382
)
383
383
)
384
384
385
- query = """
385
+ source = """
386
386
{
387
387
pets {
388
388
... on Dog {
@@ -397,7 +397,7 @@ async def resolve_type_on_union_yields_useful_error():
397
397
}
398
398
"""
399
399
400
- result = await graphql (schema , query )
400
+ result = await graphql (schema = schema , source = source )
401
401
assert result .data == {
402
402
"pets" : [
403
403
{"name" : "Odie" , "woofs" : True },
@@ -454,7 +454,7 @@ async def resolve_type_allows_resolving_with_type_name():
454
454
types = [CatType , DogType ],
455
455
)
456
456
457
- query = """{
457
+ source = """{
458
458
pets {
459
459
name
460
460
... on Dog {
@@ -466,7 +466,7 @@ async def resolve_type_allows_resolving_with_type_name():
466
466
}
467
467
}"""
468
468
469
- result = await graphql (schema , query )
469
+ result = await graphql (schema = schema , source = source )
470
470
assert result == (
471
471
{
472
472
"pets" : [
@@ -514,7 +514,7 @@ async def resolve_type_can_be_caught():
514
514
types = [CatType , DogType ],
515
515
)
516
516
517
- query = """{
517
+ source = """{
518
518
pets {
519
519
name
520
520
... on Dog {
@@ -526,7 +526,7 @@ async def resolve_type_can_be_caught():
526
526
}
527
527
}"""
528
528
529
- result = await graphql (schema , query )
529
+ result = await graphql (schema = schema , source = source )
530
530
assert result == (
531
531
{"pets" : [None , None ]},
532
532
[
0 commit comments