def returns_false_for_a_wrapped_output_type(): assert is_input_type(GraphQLList(ObjectType)) is False with raises(TypeError): assert_input_type(GraphQLList(ObjectType)) assert is_input_type(GraphQLNonNull(ObjectType)) is False with raises(TypeError): assert_input_type(GraphQLNonNull(ObjectType))
def _assert_non_input_type(type_): assert is_input_type(type_) is False with raises(TypeError): assert_input_type(type_)
def _assert_input_type(type_): assert is_input_type(type_) is True assert_input_type(type_)
def returns_false_for_an_output_type(): assert is_input_type(ObjectType) is False with raises(TypeError): assert_input_type(ObjectType)
def returns_true_for_a_wrapped_input_type(): assert is_input_type(GraphQLList(InputObjectType)) is True assert_input_type(GraphQLList(InputObjectType)) assert is_input_type(GraphQLNonNull(InputObjectType)) is True assert_input_type(GraphQLNonNull(InputObjectType))
def returns_true_for_an_input_type(): assert is_input_type(InputObjectType) is True assert_input_type(InputObjectType)