Skip to content

Commit ef300a2

Browse files
committed
Added leading 0 to date string since it is no longer int and to follow NMEA sentence format of DDMMYY
1 parent 10142fd commit ef300a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/adafruit_gps_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def test_GPS_update_timestamp_UTC_date_None():
147147
def test_GPS_update_timestamp_UTC_date_not_None():
148148
gps = GPS(uart=UartMock())
149149
exp_struct = time.struct_time((2021, 10, 2, 22, 14, 11, 0, 0, -1))
150-
gps._update_timestamp_utc(time_utc="221411", date="21021")
150+
gps._update_timestamp_utc(time_utc="221411", date="021021")
151151
assert gps.timestamp_utc == exp_struct
152152

153153

0 commit comments

Comments
 (0)