File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -1322,7 +1322,7 @@ def exposes_descriptions():
1322
1322
None ,
1323
1323
)
1324
1324
1325
- def executes_introspection_query_without_calling_global_field_resolver ():
1325
+ def executes_introspection_query_without_calling_global_resolvers ():
1326
1326
schema = build_schema (
1327
1327
"""
1328
1328
type Query {
@@ -1331,9 +1331,19 @@ def executes_introspection_query_without_calling_global_field_resolver():
1331
1331
"""
1332
1332
)
1333
1333
1334
- source = get_introspection_query (directive_is_repeatable = True )
1334
+ source = get_introspection_query (
1335
+ specified_by_url = True , directive_is_repeatable = True , schema_description = True
1336
+ )
1335
1337
1336
1338
def field_resolver (_obj , info ):
1337
1339
assert False , f"Called on { info .parent_type .name } .{ info .field_name } "
1338
1340
1339
- graphql_sync (schema = schema , source = source , field_resolver = field_resolver )
1341
+ def type_resolver (_obj , info , _abstract_type ):
1342
+ assert False , f"Called on { info .parent_type .name } .{ info .field_name } "
1343
+
1344
+ graphql_sync (
1345
+ schema = schema ,
1346
+ source = source ,
1347
+ field_resolver = field_resolver ,
1348
+ type_resolver = type_resolver ,
1349
+ )
You can’t perform that action at this time.
0 commit comments