@@ -19,7 +19,9 @@ def executes_an_introspection_query():
1919 schema = GraphQLSchema (
2020 GraphQLObjectType ("QueryRoot" , {"onlyField" : GraphQLField (GraphQLString )})
2121 )
22- source = get_introspection_query (descriptions = False )
22+ source = get_introspection_query (
23+ descriptions = False , directive_is_repeatable = True
24+ )
2325
2426 result = graphql_sync (schema = schema , source = source )
2527 assert result .errors is None
@@ -638,6 +640,21 @@ def executes_an_introspection_query():
638640 "isDeprecated" : False ,
639641 "deprecationReason" : None ,
640642 },
643+ {
644+ "name" : "isRepeatable" ,
645+ "args" : [],
646+ "type" : {
647+ "kind" : "NON_NULL" ,
648+ "name" : None ,
649+ "ofType" : {
650+ "kind" : "SCALAR" ,
651+ "name" : "Boolean" ,
652+ "ofType" : None ,
653+ },
654+ },
655+ "isDeprecated" : False ,
656+ "deprecationReason" : None ,
657+ },
641658 {
642659 "name" : "locations" ,
643660 "args" : [],
@@ -799,6 +816,7 @@ def executes_an_introspection_query():
799816 "directives" : [
800817 {
801818 "name" : "include" ,
819+ "isRepeatable" : False ,
802820 "locations" : ["FIELD" , "FRAGMENT_SPREAD" , "INLINE_FRAGMENT" ],
803821 "args" : [
804822 {
@@ -818,6 +836,7 @@ def executes_an_introspection_query():
818836 },
819837 {
820838 "name" : "skip" ,
839+ "isRepeatable" : False ,
821840 "locations" : ["FIELD" , "FRAGMENT_SPREAD" , "INLINE_FRAGMENT" ],
822841 "args" : [
823842 {
@@ -837,6 +856,7 @@ def executes_an_introspection_query():
837856 },
838857 {
839858 "name" : "deprecated" ,
859+ "isRepeatable" : False ,
840860 "locations" : ["FIELD_DEFINITION" , "ENUM_VALUE" ],
841861 "args" : [
842862 {
@@ -1329,7 +1349,7 @@ def executes_introspection_query_without_calling_global_field_resolver():
13291349 )
13301350
13311351 schema = GraphQLSchema (query_root )
1332- source = get_introspection_query ()
1352+ source = get_introspection_query (directive_is_repeatable = True )
13331353
13341354 def field_resolver (_obj , info ):
13351355 assert False , f"Called on { info .parent_type .name } .{ info .field_name } "
0 commit comments