Skip to content

Commit d81c485

Browse files
committed
Clean up
1 parent f50af68 commit d81c485

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

tests/stick_test_data.py

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -594,13 +594,13 @@
594594
b"000000C1", # Success ack
595595
b"003A" # msg_id
596596
+ b"0098765432101234" # mac
597-
+ bytes(f"{(fixed_time + timedelta(seconds=10)).second:02d}", pw_constants.UTF8) # noqa: UP031
598-
+ bytes(f"{fixed_time.minute:02d}", pw_constants.UTF8) # noqa: UP031
599-
+ bytes(f"{fixed_time.hour:02d}", pw_constants.UTF8) # noqa: UP031
600-
+ bytes(f"{fixed_time.weekday():02d}", pw_constants.UTF8) # noqa: UP031
601-
+ bytes(f"{fixed_time.day:02d}", pw_constants.UTF8) # noqa: UP031
602-
+ bytes(f"{fixed_time.month:02d}", pw_constants.UTF8) # noqa: UP031
603-
+ bytes(f"{(fixed_time.year - 2000):02d}", pw_constants.UTF8), # noqa: UP031
597+
+ bytes(f"{(fixed_time + timedelta(seconds=10)).second:02d}", pw_constants.UTF8)
598+
+ bytes(f"{fixed_time.minute:02d}", pw_constants.UTF8)
599+
+ bytes(f"{fixed_time.hour:02d}", pw_constants.UTF8)
600+
+ bytes(f"{fixed_time.weekday():02d}", pw_constants.UTF8)
601+
+ bytes(f"{fixed_time.day:02d}", pw_constants.UTF8)
602+
+ bytes(f"{fixed_time.month:02d}", pw_constants.UTF8)
603+
+ bytes(f"{(fixed_time.year - 2000):02d}", pw_constants.UTF8),
604604
),
605605
b"\x05\x05\x03\x0300280098765432101234000022030304259DDF\r\n": (
606606
"Circle+ Realtime set clock for 0098765432101234",
@@ -612,10 +612,10 @@
612612
b"000000C1", # Success ack
613613
b"003F" # msg_id
614614
+ b"1111111111111111" # mac
615-
+ bytes(f"{fixed_time.hour:02x}", pw_constants.UTF8) # noqa: UP031
616-
+ bytes(f"{fixed_time.minute:02x}", pw_constants.UTF8) # noqa: UP031
617-
+ bytes(f"{(fixed_time + timedelta(seconds=10)).second:02x}", pw_constants.UTF8) # noqa: UP031
618-
+ bytes(f"{fixed_time.weekday():02x}", pw_constants.UTF8) # noqa: UP031
615+
+ bytes(f"{fixed_time.hour:02x}", pw_constants.UTF8)
616+
+ bytes(f"{fixed_time.minute:02x}", pw_constants.UTF8)
617+
+ bytes(f"{(fixed_time + timedelta(seconds=10)).second:02x}", pw_constants.UTF8)
618+
+ bytes(f"{fixed_time.weekday():02x}", pw_constants.UTF8)
619619
+ b"00" # unknown
620620
+ b"0000", # unknown2
621621
),
@@ -624,10 +624,10 @@
624624
b"000000C1", # Success ack
625625
b"003F" # msg_id
626626
+ b"2222222222222222" # mac
627-
+ bytes(f"{fixed_time.hour:02x}", pw_constants.UTF8) # noqa: UP031
628-
+ bytes(f"{fixed_time.minute:02x}", pw_constants.UTF8) # noqa: UP031
629-
+ bytes(f"{fixed_time.second:02x}", pw_constants.UTF8) # noqa: UP031
630-
+ bytes(f"{fixed_time.weekday():02x}", pw_constants.UTF8) # noqa: UP031
627+
+ bytes(f"{fixed_time.hour:02x}", pw_constants.UTF8)
628+
+ bytes(f"{fixed_time.minute:02x}", pw_constants.UTF8)
629+
+ bytes(f"{fixed_time.second:02x}", pw_constants.UTF8)
630+
+ bytes(f"{fixed_time.weekday():02x}", pw_constants.UTF8)
631631
+ b"00" # unknown
632632
+ b"0000", # unknown2
633633
),
@@ -636,10 +636,10 @@
636636
b"000000C1", # Success ack
637637
b"003F" # msg_id
638638
+ b"3333333333333333" # mac
639-
+ bytes(f"{fixed_time.hour:02x}", pw_constants.UTF8) # noqa: UP031
640-
+ bytes(f"{fixed_time.minute:02x}", pw_constants.UTF8) # noqa: UP031
641-
+ bytes(f"{fixed_time.second:02x}", pw_constants.UTF8) # noqa: UP031
642-
+ bytes(f"{fixed_time.weekday():02x}", pw_constants.UTF8) # noqa: UP031
639+
+ bytes(f"{fixed_time.hour:02x}", pw_constants.UTF8)
640+
+ bytes(f"{fixed_time.minute:02x}", pw_constants.UTF8)
641+
+ bytes(f"{fixed_time.second:02x}", pw_constants.UTF8)
642+
+ bytes(f"{fixed_time.weekday():02x}", pw_constants.UTF8)
643643
+ b"00" # unknown
644644
+ b"0000", # unknown2
645645
),
@@ -648,10 +648,10 @@
648648
b"000000C1", # Success ack
649649
b"003F" # msg_id
650650
+ b"4444444444444444" # mac
651-
+ bytes(f"{fixed_time.hour:02x}", pw_constants.UTF8) # noqa: UP031
652-
+ bytes(f"{fixed_time.minute:02x}", pw_constants.UTF8) # noqa: UP031
653-
+ bytes(f"{fixed_time.second:02x}", pw_constants.UTF8) # noqa: UP031
654-
+ bytes(f"{fixed_time.weekday():02x}", pw_constants.UTF8) # noqa: UP031
651+
+ bytes(f"{fixed_time.hour:02x}", pw_constants.UTF8)
652+
+ bytes(f"{fixed_time.minute:02x}", pw_constants.UTF8)
653+
+ bytes(f"{fixed_time.second:02x}", pw_constants.UTF8)
654+
+ bytes(f"{fixed_time.weekday():02x}", pw_constants.UTF8)
655655
+ b"00" # unknown
656656
+ b"0000", # unknown2
657657
),

0 commit comments

Comments
 (0)