Skip to content

Commit e3267f8

Browse files
committed
stronger tests for _fixup_dates
1 parent a4ff879 commit e3267f8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/iris/tests/unit/plot/test__fixup_dates.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def test_gregorian_calendar(self):
2323
unit = Unit("hours since 2000-04-13 00:00:00", calendar="gregorian")
2424
coord = AuxCoord([1, 3, 6], "time", units=unit)
2525
result = _fixup_dates(coord, coord.points)
26+
self.assertIsInstance(result[0], datetime.datetime)
2627
expected = [
2728
datetime.datetime(2000, 4, 13, 1),
2829
datetime.datetime(2000, 4, 13, 3),
@@ -34,6 +35,7 @@ def test_gregorian_calendar_sub_second(self):
3435
unit = Unit("seconds since 2000-04-13 00:00:00", calendar="gregorian")
3536
coord = AuxCoord([1, 1.25, 1.5], "time", units=unit)
3637
result = _fixup_dates(coord, coord.points)
38+
self.assertIsInstance(result[0], datetime.datetime)
3739
expected = [
3840
datetime.datetime(2000, 4, 13, 0, 0, 1),
3941
datetime.datetime(2000, 4, 13, 0, 0, 1),

0 commit comments

Comments
 (0)