Skip to content

Commit

Permalink
Update test to expect a union(nullable, enum)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjperrone committed Jan 18, 2024
1 parent fb2d487 commit 22fe4e5
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions tests/integration/clients/test_postgresql.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,13 @@ def test_struct_method_arrays_no_enforce_dimensions(self):
),
],
),
EnumType(
default=None, symbols=["sad", "ok", "happy"], name="test_enum_mood"
UnionType(
default=None,
name="test_enum_mood",
types=[
NullType(),
EnumType(default=None, symbols=["sad", "ok", "happy"]),
],
),
]
validate_results(test_types_struct, expected_fields)
Expand Down Expand Up @@ -465,6 +470,14 @@ def test_struct_method_arrays_enforce_dimensions(self):
),
],
),
UnionType(
default=None,
name="test_enum_mood",
types=[
NullType(),
EnumType(default=None, symbols=["sad", "ok", "happy"]),
],
),
]
validate_results(test_types_struct, expected_fields)

Expand Down

0 comments on commit 22fe4e5

Please sign in to comment.