Example #1
0
 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))
Example #2
0
 def _assert_non_input_type(type_):
     assert is_input_type(type_) is False
     with raises(TypeError):
         assert_input_type(type_)
Example #3
0
 def _assert_input_type(type_):
     assert is_input_type(type_) is True
     assert_input_type(type_)
Example #4
0
 def returns_false_for_an_output_type():
     assert is_input_type(ObjectType) is False
     with raises(TypeError):
         assert_input_type(ObjectType)
Example #5
0
 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))
Example #6
0
 def returns_true_for_an_input_type():
     assert is_input_type(InputObjectType) is True
     assert_input_type(InputObjectType)