File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -701,13 +701,14 @@ def accepts_a_union_type_with_list_types():
701
701
def accepts_a_union_type_with_function_returning_a_list_of_types ():
702
702
schema_with_field_type (GraphQLUnionType ("SomeUnion" , lambda : [ObjectType ]))
703
703
704
- def rejects_a_union_type_without_types ():
704
+ def accepts_a_union_type_without_types ():
705
705
with raises (TypeError ) as exc_info :
706
706
# noinspection PyArgumentList
707
707
schema_with_field_type (GraphQLUnionType ("SomeUnion" ))
708
708
msg = str (exc_info .value )
709
709
assert "missing 1 required positional argument: 'types'" in msg
710
710
schema_with_field_type (GraphQLUnionType ("SomeUnion" , None ))
711
+ schema_with_field_type (GraphQLUnionType ("SomeUnion" , []))
711
712
712
713
def rejects_a_union_type_with_incorrectly_typed_types ():
713
714
with raises (TypeError ) as exc_info :
You can’t perform that action at this time.
0 commit comments