@@ -182,12 +182,12 @@ async def is_type_of_with_async_error():
182182 assert list (map (format_error , result .errors )) == [ # type: ignore
183183 {
184184 "message" : "We are testing this error" ,
185- "locations" : [( 3 , 15 ) ],
185+ "locations" : [{ "line" : 3 , "column" : 15 } ],
186186 "path" : ["pets" , 0 ],
187187 },
188188 {
189189 "message" : "We are testing this error" ,
190- "locations" : [( 3 , 15 ) ],
190+ "locations" : [{ "line" : 3 , "column" : 15 } ],
191191 "path" : ["pets" , 1 ],
192192 },
193193 ]
@@ -334,7 +334,7 @@ async def resolve_type_on_interface_yields_useful_error():
334334 assert format_error (result .errors [0 ]) == {
335335 "message" : "Runtime Object type 'Human'"
336336 " is not a possible type for 'Pet'." ,
337- "locations" : [( 3 , 15 ) ],
337+ "locations" : [{ "line" : 3 , "column" : 15 } ],
338338 "path" : ["pets" , 2 ],
339339 }
340340
@@ -411,7 +411,7 @@ async def resolve_type_on_union_yields_useful_error():
411411 assert format_error (result .errors [0 ]) == {
412412 "message" : "Runtime Object type 'Human'"
413413 " is not a possible type for 'Pet'." ,
414- "locations" : [( 3 , 15 ) ],
414+ "locations" : [{ "line" : 3 , "column" : 15 } ],
415415 "path" : ["pets" , 2 ],
416416 }
417417
0 commit comments