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