Skip to content

Commit

Permalink
Reformatted sub9 usb_to_can test files with black
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrxyz committed Oct 26, 2023
1 parent 995c7c1 commit 5ed7ba6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mil_common/drivers/mil_usb_to_can/test/test_packets_sub9.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from mil_usb_to_can.sub9 import Packet
from mil_usb_to_can.sub9.packet import SYNC_CHAR_1, SYNC_CHAR_2


@dataclass
class TestPacket(Packet, msg_id=0x47, subclass_id=0x44, payload_format="?Hd"):
example_bool: bool
Expand Down Expand Up @@ -34,7 +35,7 @@ def test_assembled_packet(self):
self.assertEqual(assembled[1], SYNC_CHAR_2)
self.assertEqual(assembled[2], packet.msg_id)
self.assertEqual(assembled[3], packet.subclass_id)

def test_format(self):
packet = TestPacket(False, 42, 3.14)
self.assertEqual(
Expand Down

0 comments on commit 5ed7ba6

Please sign in to comment.