Exemple #1
0
 def returns_false_for_a_unwrapped_type():
     assert is_list_type(ObjectType) is False
     with raises(TypeError):
         assert_list_type(ObjectType)
Exemple #2
0
 def returns_false_for_a_non_list_wrapped_type():
     assert is_list_type(GraphQLNonNull(
         GraphQLList(ObjectType))) is False
     with raises(TypeError):
         assert_list_type(GraphQLNonNull(GraphQLList(ObjectType)))
Exemple #3
0
 def returns_true_for_a_list_wrapped_type():
     assert is_list_type(GraphQLList(ObjectType)) is True
     assert_list_type(GraphQLList(ObjectType))