예제 #1
0
 def returns_false_for_wrapped_non_abstract_type():
     assert is_abstract_type(GraphQLList(ObjectType)) is False
     with raises(TypeError):
         assert_abstract_type(GraphQLList(ObjectType))
예제 #2
0
 def returns_false_for_wrapped_abstract_type():
     assert is_abstract_type(GraphQLList(InterfaceType)) is False
     with raises(TypeError):
         assert_abstract_type(GraphQLList(InterfaceType))
예제 #3
0
 def returns_false_for_non_abstract_type():
     assert is_abstract_type(ObjectType) is False
     with raises(TypeError):
         assert_abstract_type(ObjectType)
예제 #4
0
 def returns_true_for_interface_and_union_types():
     assert is_abstract_type(InterfaceType) is True
     assert_abstract_type(InterfaceType)
     assert is_abstract_type(UnionType) is True
     assert_abstract_type(UnionType)