Beispiel #1
0
 def returns_true_for_object_interface_and_union_types():
     assert is_composite_type(ObjectType) is True
     assert_composite_type(ObjectType)
     assert is_composite_type(InterfaceType) is True
     assert_composite_type(InterfaceType)
     assert is_composite_type(UnionType) is True
     assert_composite_type(UnionType)
Beispiel #2
0
 def returns_false_for_wrapped_non_composite_type():
     assert is_composite_type(GraphQLList(InputObjectType)) is False
     with raises(TypeError):
         assert_composite_type(GraphQLList(InputObjectType))
Beispiel #3
0
 def returns_false_for_non_composite_type():
     assert is_composite_type(InputObjectType) is False
     with raises(TypeError):
         assert_composite_type(InputObjectType)