File tree Expand file tree Collapse file tree 2 files changed +65
-41
lines changed Expand file tree Collapse file tree 2 files changed +65
-41
lines changed Original file line number Diff line number Diff line change 1
1
introspection_query = '''
2
- query IntrospectionQuery {
2
+ query IntrospectionQuery {
3
3
__schema {
4
- queryType { name }
5
- mutationType { name }
6
- subscriptionType { name }
7
- types {
8
- ...FullType
9
- }
10
- directives {
11
- name
12
- description
13
- locations
14
- args {
15
- ...InputValue
16
- }
4
+ queryType { name }
5
+ mutationType { name }
6
+ subscriptionType { name }
7
+ types {
8
+ ...FullType
9
+ }
10
+ directives {
11
+ name
12
+ description
13
+ locations
14
+ args {
15
+ ...InputValue
17
16
}
17
+ }
18
18
}
19
- }
20
- fragment FullType on __Type {
19
+ }
20
+ fragment FullType on __Type {
21
21
kind
22
22
name
23
23
description
24
24
fields(includeDeprecated: true) {
25
- name
26
- description
27
- args {
28
- ...InputValue
29
- }
30
- type {
31
- ...TypeRef
32
- }
33
- isDeprecated
34
- deprecationReason
25
+ name
26
+ description
27
+ args {
28
+ ...InputValue
29
+ }
30
+ type {
31
+ ...TypeRef
32
+ }
33
+ isDeprecated
34
+ deprecationReason
35
35
}
36
36
inputFields {
37
- ...InputValue
37
+ ...InputValue
38
38
}
39
39
interfaces {
40
- ...TypeRef
40
+ ...TypeRef
41
41
}
42
42
enumValues(includeDeprecated: true) {
43
- name
44
- description
45
- isDeprecated
46
- deprecationReason
43
+ name
44
+ description
45
+ isDeprecated
46
+ deprecationReason
47
47
}
48
48
possibleTypes {
49
- ...TypeRef
49
+ ...TypeRef
50
50
}
51
- }
52
- fragment InputValue on __InputValue {
51
+ }
52
+ fragment InputValue on __InputValue {
53
53
name
54
54
description
55
55
type { ...TypeRef }
56
56
defaultValue
57
- }
58
- fragment TypeRef on __Type {
57
+ }
58
+ fragment TypeRef on __Type {
59
59
kind
60
60
name
61
61
ofType {
62
+ kind
63
+ name
64
+ ofType {
62
65
kind
63
66
name
64
67
ofType {
68
+ kind
69
+ name
70
+ ofType {
65
71
kind
66
72
name
67
73
ofType {
74
+ kind
75
+ name
76
+ ofType {
68
77
kind
69
78
name
79
+ ofType {
80
+ kind
81
+ name
82
+ }
83
+ }
70
84
}
85
+ }
71
86
}
87
+ }
72
88
}
73
- }
89
+ }
74
90
'''
Original file line number Diff line number Diff line change @@ -615,7 +615,11 @@ def test_fails_on_very_deep_lists():
615
615
name = 'Query' ,
616
616
fields = {
617
617
'foo' : GraphQLField (
618
- GraphQLList (GraphQLList (GraphQLList (GraphQLList (GraphQLString ))))
618
+ GraphQLList (GraphQLList (GraphQLList (GraphQLList (
619
+ GraphQLList (GraphQLList (GraphQLList (GraphQLList (
620
+ GraphQLList (GraphQLString )
621
+ ))))
622
+ ))))
619
623
)
620
624
}
621
625
)
@@ -629,13 +633,17 @@ def test_fails_on_very_deep_lists():
629
633
assert str (excinfo .value ) == 'Decorated type deeper than introspection query.'
630
634
631
635
632
- def test_fails_on_a_deep_non_null ():
636
+ def test_fails_on_a_very_deep_non_null ():
633
637
schema = GraphQLSchema (
634
638
query = GraphQLObjectType (
635
639
name = 'Query' ,
636
640
fields = {
637
641
'foo' : GraphQLField (
638
- GraphQLList (GraphQLList (GraphQLList (GraphQLNonNull (GraphQLString ))))
642
+ GraphQLList (GraphQLList (GraphQLList (GraphQLList (
643
+ GraphQLList (GraphQLList (GraphQLList (GraphQLList (
644
+ GraphQLNonNull (GraphQLString )
645
+ ))))
646
+ ))))
639
647
)
640
648
}
641
649
)
You can’t perform that action at this time.
0 commit comments