We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99b62e8 commit 74d5057Copy full SHA for 74d5057
tests/utilities/test_print_schema.py
@@ -301,6 +301,21 @@ def prints_schema_with_description():
301
'''
302
)
303
304
+ def omits_schema_of_common_names():
305
+ schema = GraphQLSchema(query=GraphQLObjectType("Query", {}),
306
+ mutation=GraphQLObjectType("Mutation", {}),
307
+ subscription=GraphQLObjectType("Subscription", {}))
308
+
309
+ assert expect_printed_schema(schema) == dedent(
310
+ """
311
+ type Query
312
313
+ type Mutation
314
315
+ type Subscription
316
317
+ )
318
319
def prints_custom_query_root_types():
320
schema = GraphQLSchema(query=GraphQLObjectType("CustomType", {}))
321
0 commit comments