Skip to content

Commit

Permalink
GraphQLInputObjectType: remove check that duplicate type checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Apr 7, 2024
1 parent fe6fd14 commit 860064f
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions tests/type/test_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -1116,35 +1116,6 @@ def fields():
"SomeInputObject fields cannot be resolved. Oops!"
)

def describe_input_objects_fields_must_not_have_resolvers():
def rejects_an_input_object_type_with_resolvers():
def resolve():
pass

with pytest.raises(
TypeError, match="got an unexpected keyword argument 'resolve'"
):
# noinspection PyArgumentList
GraphQLInputObjectType(
"SomeInputObject",
{
"f": GraphQLInputField( # type: ignore
ScalarType,
resolve=resolve,
)
},
)

def rejects_an_input_object_type_with_resolver_constant():
with pytest.raises(
TypeError, match="got an unexpected keyword argument 'resolve'"
):
# noinspection PyArgumentList
GraphQLInputObjectType(
"SomeInputObject",
{"f": GraphQLInputField(ScalarType, resolve={})}, # type: ignore
)


def describe_type_system_arguments():
def accepts_an_argument_with_a_description():
Expand Down

0 comments on commit 860064f

Please sign in to comment.