Skip to content

Commit 38e3630

Browse files
committed
update timestamps on tests
1 parent c7aa71f commit 38e3630

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

python/tests/test_functions.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -901,23 +901,23 @@ def test_temporal_functions(df):
901901
datetime(2027, 6, 1, tzinfo=DEFAULT_TZ),
902902
datetime(2020, 7, 1, tzinfo=DEFAULT_TZ),
903903
],
904-
type=pa.timestamp("us"),
904+
type=pa.timestamp("ns", tz=DEFAULT_TZ),
905905
)
906906
assert result.column(3) == pa.array(
907907
[
908908
datetime(2022, 12, 31, tzinfo=DEFAULT_TZ),
909909
datetime(2027, 6, 26, tzinfo=DEFAULT_TZ),
910910
datetime(2020, 7, 2, tzinfo=DEFAULT_TZ),
911911
],
912-
type=pa.timestamp("us"),
912+
type=pa.timestamp("ns", tz=DEFAULT_TZ),
913913
)
914914
assert result.column(4) == pa.array(
915915
[
916916
datetime(2022, 12, 30, 23, 47, 30, tzinfo=DEFAULT_TZ),
917917
datetime(2027, 6, 25, 23, 47, 30, tzinfo=DEFAULT_TZ),
918918
datetime(2020, 7, 1, 23, 47, 30, tzinfo=DEFAULT_TZ),
919919
],
920-
type=pa.timestamp("ns"),
920+
type=pa.timestamp("ns", tz=DEFAULT_TZ),
921921
)
922922
assert result.column(5) == pa.array(
923923
[datetime(2023, 1, 10, 20, 52, 54, tzinfo=DEFAULT_TZ)] * 3,
@@ -928,7 +928,7 @@ def test_temporal_functions(df):
928928
type=pa.timestamp("ns"),
929929
)
930930
assert result.column(7) == pa.array(
931-
[datetime(2023, 9, 7, 5, 6, 1, tzinfo=DEFAULT_TZ)] * 3, type=pa.timestamp("s")
931+
[datetime(2023, 9, 7, 5, 6, 14, tzinfo=DEFAULT_TZ)] * 3, type=pa.timestamp("s")
932932
)
933933
assert result.column(8) == pa.array(
934934
[datetime(2023, 9, 7, 5, 6, 14, 523000, tzinfo=DEFAULT_TZ)] * 3,
@@ -944,7 +944,8 @@ def test_temporal_functions(df):
944944
type=pa.timestamp("ns"),
945945
)
946946
assert result.column(12) == pa.array(
947-
[datetime(2023, 9, 7, 5, 6, 14, tzinfo=DEFAULT_TZ)] * 3, type=pa.timestamp("s")
947+
[datetime(2023, 9, 7, 5, 6, 14, tzinfo=DEFAULT_TZ)] * 3,
948+
type=pa.timestamp("s"),
948949
)
949950
assert result.column(13) == pa.array(
950951
[datetime(2023, 9, 7, 5, 6, 14, 523000, tzinfo=DEFAULT_TZ)] * 3,

0 commit comments

Comments
 (0)