Skip to content

Commit fa38fe1

Browse files
committed
test_build_ast_schema: expand SDL descriptions test
Replicates graphql/graphql-js@31d942e
1 parent caf9b41 commit fa38fe1

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/utilities/test_build_ast_schema.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,24 @@ def supports_descriptions():
186186
arg: Int
187187
) on FIELD
188188
189+
"""Who knows what's inside this scalar?"""
190+
scalar MysteryScalar
191+
192+
"""This is an input object type"""
193+
input FooInput {
194+
"""It has a field"""
195+
field: Int
196+
}
197+
198+
"""This is an interface type"""
199+
interface Energy {
200+
"""It also has a field"""
201+
str: String
202+
}
203+
204+
"""There is nothing inside!"""
205+
union BlackHole
206+
189207
"""With an enum"""
190208
enum Color {
191209
RED

0 commit comments

Comments
 (0)