11from typing import cast
22
3- from pytest import raises
4-
53from graphql import graphql_sync
64from graphql .type import (
75 GraphQLArgument ,
1816 assert_enum_type ,
1917)
2018from graphql .utilities import (
21- build_schema ,
2219 build_client_schema ,
20+ build_schema ,
2321 introspection_from_schema ,
2422 print_schema ,
2523)
3129 IntrospectionType ,
3230 IntrospectionUnionType ,
3331)
32+ from pytest import raises
3433
3534from ..utils import dedent
3635
@@ -991,11 +990,11 @@ def throws_when_missing_directive_args():
991990 build_client_schema (introspection )
992991
993992 def describe_very_deep_decorators_are_not_supported ():
994- def fails_on_very_deep_lists_more_than_7_levels ():
993+ def fails_on_very_deep_lists_more_than_8_levels ():
995994 schema = build_schema (
996995 """
997996 type Query {
998- foo: [[[[[[[[String]]]]]]]]
997+ foo: [[[[[[[[[[ String]] ]]]]]]]]
999998 }
1000999 """
10011000 )
@@ -1010,11 +1009,11 @@ def fails_on_very_deep_lists_more_than_7_levels():
10101009 " Decorated type deeper than introspection query."
10111010 )
10121011
1013- def fails_on_a_very_deep_non_null_more_than_7_levels ():
1012+ def fails_on_a_very_deep_non_null_more_than_8_levels ():
10141013 schema = build_schema (
10151014 """
10161015 type Query {
1017- foo: [[[[String!]!]!]!]
1016+ foo: [[[[[ String!] !]!]!]!]
10181017 }
10191018 """
10201019 )
@@ -1029,12 +1028,12 @@ def fails_on_a_very_deep_non_null_more_than_7_levels():
10291028 " Decorated type deeper than introspection query."
10301029 )
10311030
1032- def succeeds_on_deep_types_less_or_equal_7_levels ():
1033- # e.g., fully non-null 3D matrix
1031+ def succeeds_on_deep_types_less_or_equal_8_levels ():
1032+ # e.g., fully non-null 4D matrix
10341033 sdl = dedent (
10351034 """
10361035 type Query {
1037- foo: [[[String!]!]!]!
1036+ foo: [[[[ String!] !]!]!]!
10381037 }
10391038 """
10401039 )
0 commit comments