@@ -96,14 +96,14 @@ async def mutate_and_get_one_as_payload_async(_info, **_input):
9696
9797def describe_mutation_with_client_mutation_id ():
9898 def requires_an_argument ():
99- query = """
99+ source = """
100100 mutation M {
101101 simpleMutation {
102102 result
103103 }
104104 }
105105 """
106- assert graphql_sync (schema , query ) == (
106+ assert graphql_sync (schema , source ) == (
107107 None ,
108108 [
109109 {
@@ -116,21 +116,21 @@ def requires_an_argument():
116116 )
117117
118118 def returns_the_same_client_mutation_id ():
119- query = """
119+ source = """
120120 mutation M {
121121 simpleMutation(input: {clientMutationId: "abc"}) {
122122 result
123123 clientMutationId
124124 }
125125 }
126126 """
127- assert graphql_sync (schema , query ) == (
127+ assert graphql_sync (schema , source ) == (
128128 {"simpleMutation" : {"result" : 1 , "clientMutationId" : "abc" }},
129129 None ,
130130 )
131131
132132 def supports_thunks_as_input_and_output_fields ():
133- query = """
133+ source = """
134134 mutation M {
135135 simpleMutationWithThunkFields(
136136 input: {inputData: 1234, clientMutationId: "abc"}) {
@@ -139,7 +139,7 @@ def supports_thunks_as_input_and_output_fields():
139139 }
140140 }
141141 """
142- assert graphql_sync (schema , query ) == (
142+ assert graphql_sync (schema , source ) == (
143143 {
144144 "simpleMutationWithThunkFields" : {
145145 "result" : 1234 ,
@@ -151,50 +151,50 @@ def supports_thunks_as_input_and_output_fields():
151151
152152 @mark .asyncio
153153 async def supports_async_mutations ():
154- query = """
154+ source = """
155155 mutation M {
156156 simpleAsyncMutation(input: {clientMutationId: "abc"}) {
157157 result
158158 clientMutationId
159159 }
160160 }
161161 """
162- assert await graphql (schema , query ) == (
162+ assert await graphql (schema , source ) == (
163163 {"simpleAsyncMutation" : {"result" : 1 , "clientMutationId" : "abc" }},
164164 None ,
165165 )
166166
167167 def can_access_root_value ():
168- query = """
168+ source = """
169169 mutation M {
170170 simpleRootValueMutation(input: {clientMutationId: "abc"}) {
171171 result
172172 clientMutationId
173173 }
174174 }
175175 """
176- assert graphql_sync (schema , query , root_value = Result (1 )) == (
176+ assert graphql_sync (schema , source , root_value = Result (1 )) == (
177177 {"simpleRootValueMutation" : {"result" : 1 , "clientMutationId" : "abc" }},
178178 None ,
179179 )
180180
181181 def supports_mutations_returning_null ():
182- query = """
182+ source = """
183183 mutation M {
184184 simpleRootValueMutation(input: {clientMutationId: "abc"}) {
185185 result
186186 clientMutationId
187187 }
188188 }
189189 """
190- assert graphql_sync (schema , query , root_value = None ) == (
190+ assert graphql_sync (schema , source , root_value = None ) == (
191191 {"simpleRootValueMutation" : {"result" : None , "clientMutationId" : "abc" }},
192192 None ,
193193 )
194194
195195 def describe_introspection ():
196196 def contains_correct_input ():
197- query = """
197+ source = """
198198 {
199199 __type(name: "SimpleMutationInput") {
200200 name
@@ -209,7 +209,7 @@ def contains_correct_input():
209209 }
210210 }
211211 """
212- assert graphql_sync (schema , query ) == (
212+ assert graphql_sync (schema , source ) == (
213213 {
214214 "__type" : {
215215 "name" : "SimpleMutationInput" ,
@@ -226,7 +226,7 @@ def contains_correct_input():
226226 )
227227
228228 def contains_correct_payload ():
229- query = """
229+ source = """
230230 {
231231 __type(name: "SimpleMutationPayload") {
232232 name
@@ -241,7 +241,7 @@ def contains_correct_payload():
241241 }
242242 }
243243 """
244- assert graphql_sync (schema , query ) == (
244+ assert graphql_sync (schema , source ) == (
245245 {
246246 "__type" : {
247247 "name" : "SimpleMutationPayload" ,
@@ -262,7 +262,7 @@ def contains_correct_payload():
262262 )
263263
264264 def contains_correct_field ():
265- query = """
265+ source = """
266266 {
267267 __schema {
268268 mutationType {
@@ -288,7 +288,7 @@ def contains_correct_field():
288288 }
289289 }
290290 """
291- assert graphql_sync (schema , query ) == (
291+ assert graphql_sync (schema , source ) == (
292292 {
293293 "__schema" : {
294294 "mutationType" : {
@@ -403,7 +403,7 @@ def contains_correct_field():
403403 )
404404
405405 def contains_correct_descriptions ():
406- query = """
406+ source = """
407407 {
408408 __schema {
409409 mutationType {
@@ -415,7 +415,7 @@ def contains_correct_descriptions():
415415 }
416416 }
417417 """
418- assert graphql_sync (schema , query ) == (
418+ assert graphql_sync (schema , source ) == (
419419 {
420420 "__schema" : {
421421 "mutationType" : {
@@ -442,7 +442,7 @@ def contains_correct_descriptions():
442442 )
443443
444444 def contains_correct_deprecation_reason ():
445- query = """
445+ source = """
446446 {
447447 __schema {
448448 mutationType {
@@ -455,7 +455,7 @@ def contains_correct_deprecation_reason():
455455 }
456456 }
457457 """
458- assert graphql_sync (schema , query ) == (
458+ assert graphql_sync (schema , source ) == (
459459 {
460460 "__schema" : {
461461 "mutationType" : {
0 commit comments