File tree Expand file tree Collapse file tree 1 file changed +19
-4
lines changed
Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -992,10 +992,25 @@ def test_get_introspection_query_ast(option):
992992 schema_description = option ,
993993 )
994994
995- assert print_ast (gql (introspection_query )) == print_ast (dsl_introspection_query )
996- assert node_tree (dsl_introspection_query ) == node_tree (
997- gql (print_ast (dsl_introspection_query ))
998- )
995+ try :
996+ assert print_ast (gql (introspection_query )) == print_ast (dsl_introspection_query )
997+ assert node_tree (dsl_introspection_query ) == node_tree (
998+ gql (print_ast (dsl_introspection_query ))
999+ )
1000+ except AssertionError :
1001+
1002+ # From graphql-core version 3.3.0a7, there is two more type recursion levels
1003+ dsl_introspection_query = get_introspection_query_ast (
1004+ descriptions = option ,
1005+ specified_by_url = option ,
1006+ directive_is_repeatable = option ,
1007+ schema_description = option ,
1008+ type_recursion_level = 9 ,
1009+ )
1010+ assert print_ast (gql (introspection_query )) == print_ast (dsl_introspection_query )
1011+ assert node_tree (dsl_introspection_query ) == node_tree (
1012+ gql (print_ast (dsl_introspection_query ))
1013+ )
9991014
10001015
10011016def test_typename_aliased (ds ):
You can’t perform that action at this time.
0 commit comments