Esempio n. 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))
Esempio n. 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))
Esempio n. 3
0
 def returns_false_for_non_abstract_type():
     assert is_abstract_type(ObjectType) is False
     with raises(TypeError):
         assert_abstract_type(ObjectType)
Esempio n. 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)