Skip to content

Commit b59ddd3

Browse files
committed
tests: Update cal date check to pass on older devices
1 parent dab722c commit b59ddd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/component/system/test_device_properties.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def test___ext_cal_last_date_and_time___no_errors(real_x_series_device: Device)
116116
last_date_and_time = real_x_series_device.ext_cal_last_date_and_time
117117

118118
assert type(last_date_and_time) is datetime
119-
assert last_date_and_time.year > 2009
119+
assert last_date_and_time.year >= 2009
120120
assert last_date_and_time.month >= 1
121121
assert last_date_and_time.day > 0
122122
assert last_date_and_time.hour >= 0
@@ -127,7 +127,7 @@ def test___self_cal_last_date_and_time___no_errors(real_x_series_device: Device)
127127
last_date_and_time = real_x_series_device.self_cal_last_date_and_time
128128

129129
assert type(last_date_and_time) is datetime
130-
assert last_date_and_time.year > 2009
130+
assert last_date_and_time.year >= 2009
131131
assert last_date_and_time.month >= 1
132132
assert last_date_and_time.day > 0
133133
assert last_date_and_time.hour >= 0

0 commit comments

Comments
 (0)