From 713efd82f2a3da9b0d4a9b010d228937cd9046cc Mon Sep 17 00:00:00 2001 From: Yoshi-Egawa Date: Sat, 25 Jan 2025 13:31:07 +0900 Subject: [PATCH] add:names test of TimestampType --- tests/unit/test_types.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit/test_types.py b/tests/unit/test_types.py index c990789b16..43df4fe0fb 100644 --- a/tests/unit/test_types.py +++ b/tests/unit/test_types.py @@ -233,6 +233,7 @@ def test_sf_datatype_names(): assert str(FloatType()) == "FloatType()" assert str(DoubleType()) == "DoubleType()" assert str(DecimalType(1, 2)) == "DecimalType(1, 2)" + assert str(TimestampType(TimestampTimeZone.TZ)) == "TimestampType(timezone=TimestampTimeZone('tz'))" def test_sf_datatype_hashes(): @@ -258,6 +259,7 @@ def test_sf_datatype_hashes(): assert hash(FloatType()) == hash("FloatType()") assert hash(DoubleType()) == hash("DoubleType()") assert hash(DecimalType(1, 2)) == hash("DecimalType(1, 2)") + assert hash(TimestampType(TimestampTimeZone.TZ)) == hash("TimestampType(timezone=TimestampTimeZone('tz'))") def test_merge_type():