From b35cd87f21a026e38f2671649c91b4c26c444364 Mon Sep 17 00:00:00 2001 From: Mike Reiche Date: Wed, 7 Aug 2024 20:34:25 +0200 Subject: [PATCH] Add assertion for timezone --- tests/test_utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_utils.py b/tests/test_utils.py index 24eccd120..e3f66e592 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -90,11 +90,13 @@ def test_mixed_timezones_to_datetime_fails(self): series = pd.Series(self.date_strings) series = series.map(pd.Timestamp) converted = pd.to_datetime(series) + self.assertIsNotNone(converted[0].tz) def test_mixed_timezones_to_datetime(self): series = pd.Series(self.date_strings) series = series.map(pd.Timestamp) converted = pd.to_datetime(series, utc=True) + self.assertIsNotNone(converted[0].tz) i = 0 for dt in converted: dt: datetime