Skip to content

Commit 860064f

Browse files
committed
GraphQLInputObjectType: remove check that duplicate type checks
Replicates graphql/graphql-js@74e51d7
1 parent fe6fd14 commit 860064f

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

tests/type/test_definition.py

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,35 +1116,6 @@ def fields():
11161116
"SomeInputObject fields cannot be resolved. Oops!"
11171117
)
11181118

1119-
def describe_input_objects_fields_must_not_have_resolvers():
1120-
def rejects_an_input_object_type_with_resolvers():
1121-
def resolve():
1122-
pass
1123-
1124-
with pytest.raises(
1125-
TypeError, match="got an unexpected keyword argument 'resolve'"
1126-
):
1127-
# noinspection PyArgumentList
1128-
GraphQLInputObjectType(
1129-
"SomeInputObject",
1130-
{
1131-
"f": GraphQLInputField( # type: ignore
1132-
ScalarType,
1133-
resolve=resolve,
1134-
)
1135-
},
1136-
)
1137-
1138-
def rejects_an_input_object_type_with_resolver_constant():
1139-
with pytest.raises(
1140-
TypeError, match="got an unexpected keyword argument 'resolve'"
1141-
):
1142-
# noinspection PyArgumentList
1143-
GraphQLInputObjectType(
1144-
"SomeInputObject",
1145-
{"f": GraphQLInputField(ScalarType, resolve={})}, # type: ignore
1146-
)
1147-
11481119

11491120
def describe_type_system_arguments():
11501121
def accepts_an_argument_with_a_description():

0 commit comments

Comments
 (0)