Ejemplo n.º 1
0
 def returns_false_for_list_and_non_null_types():
     assert is_named_type(GraphQLList(ObjectType)) is False
     with raises(TypeError):
         assert_named_type(GraphQLList(ObjectType))
     assert is_named_type(GraphQLNonNull(ObjectType)) is False
     with raises(TypeError):
         assert_named_type(GraphQLNonNull(ObjectType))
Ejemplo n.º 2
0
 def returns_true_for_unwrapped_types():
     assert is_named_type(ObjectType) is True
     assert_named_type(ObjectType)