Skip to content

Commit b505c1c

Browse files
committed
Removed union test for input object type converter
1 parent efae56e commit b505c1c

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

graphene_pydantic/inputobjecttype/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def construct_fields(
5555

5656

5757
class PydanticInputObjectType(graphene.InputObjectType):
58-
"""Graphene ObjectType that knows how to map itself to a Pydantic model defined in its nested `Meta` class."""
58+
"""Graphene InputObjectType that knows how to map itself to a Pydantic model defined in its nested `Meta` class."""
5959

6060
@classmethod
6161
def __init_subclass_with_meta__(

tests/inputobjecttype/test_converters.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,6 @@ def test_builtin_scalars(input, expected):
6969
assert field.default_value == input[1]
7070

7171

72-
def test_union():
73-
field = _convert_field_from_spec("attr", (T.Union[int, float, str], 5.0))
74-
assert issubclass(field.type, graphene.Union)
75-
assert field.default_value == 5.0
76-
assert field.type.__name__.startswith("UnionOf")
77-
78-
7972
def test_mapping():
8073
with pytest.raises(ConversionError) as exc:
8174
_convert_field_from_spec("attr", (T.Dict[str, int], {"foo": 5}))

0 commit comments

Comments
 (0)