#NEWLINE# def test_uses_the_query_schema_for_queries( ) : #NEWLINE# #INDENT# doc = 'query Q { a } mutation M { c } subscription S { a }' #NEWLINE# class Data ( object ) : #NEWLINE# #INDENT# a = 'b' #NEWLINE# c = 'd' #NEWLINE# #UNINDENT# ast = parse ( doc ) #NEWLINE# Q = GraphQLObjectType ( 'Q' , { #NEWLINE# #INDENT# 'a' : GraphQLField ( GraphQLString ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# M = GraphQLObjectType ( 'M' , { #NEWLINE# #INDENT# 'c' : GraphQLField ( GraphQLString ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# S = GraphQLObjectType ( 'S' , { #NEWLINE# #INDENT# 'a' : GraphQLField ( GraphQLString ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# result = execute ( GraphQLSchema ( Q , M , S ) , Data ( ) , M , 'Q' ) #NEWLINE# assert ( not result . errors ) #NEWLINE# assert ( result . data == { #NEWLINE# #INDENT# 'a' : 'b' , #NEWLINE# #UNINDENT# } )