Skip to content

Commit 245ce0d

Browse files
committed
Fix test description
Replicates graphql/graphql-js@7fff8b7
1 parent 7c89a24 commit 245ce0d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/type/test_definition.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,13 +701,14 @@ def accepts_a_union_type_with_list_types():
701701
def accepts_a_union_type_with_function_returning_a_list_of_types():
702702
schema_with_field_type(GraphQLUnionType("SomeUnion", lambda: [ObjectType]))
703703

704-
def rejects_a_union_type_without_types():
704+
def accepts_a_union_type_without_types():
705705
with raises(TypeError) as exc_info:
706706
# noinspection PyArgumentList
707707
schema_with_field_type(GraphQLUnionType("SomeUnion"))
708708
msg = str(exc_info.value)
709709
assert "missing 1 required positional argument: 'types'" in msg
710710
schema_with_field_type(GraphQLUnionType("SomeUnion", None))
711+
schema_with_field_type(GraphQLUnionType("SomeUnion", []))
711712

712713
def rejects_a_union_type_with_incorrectly_typed_types():
713714
with raises(TypeError) as exc_info:

0 commit comments

Comments
 (0)