Skip to content

Commit

Permalink
ran auto-formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed Jan 23, 2024
1 parent ed5026e commit 4044548
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions spacepackets/countdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def time_ms() -> int:
class Countdown:
"""Utility class for counting down time. Exposes a simple API to initiate
it with an initial timeout and to check whether is has expired."""

def __init__(self, init_timeout: Optional[timedelta]):
if init_timeout is not None:
self._timeout_ms = int(init_timeout / timedelta(milliseconds=1))
Expand Down
4 changes: 3 additions & 1 deletion tests/cfdp/pdus/test_ack_pdu.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ def test_ack_pdu(self):
transaction_seq_num=ByteFieldU32.from_u32_bytes(
bytes([0x50, 0x00, 0x10, 0x01])
),
source_entity_id=ByteFieldU32.from_u32_bytes(bytes([0x10, 0x00, 0x01, 0x02])),
source_entity_id=ByteFieldU32.from_u32_bytes(
bytes([0x10, 0x00, 0x01, 0x02])
),
dest_entity_id=ByteFieldU32.from_u32_bytes(bytes([0x30, 0x00, 0x01, 0x03])),
crc_flag=CrcFlag.WITH_CRC,
trans_mode=TransmissionMode.UNACKNOWLEDGED,
Expand Down
4 changes: 3 additions & 1 deletion tests/cfdp/test_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ def test_with_prompt_pdu(self):
self._switch_cfg()
self.pdu_conf.source_entity_id = ByteFieldU8(0)
self.pdu_conf.dest_entity_id = ByteFieldU8(0)
self.pdu_conf.transaction_seq_num = ByteFieldU16.from_u16_bytes(bytes([0x00, 0x2C]))
self.pdu_conf.transaction_seq_num = ByteFieldU16.from_u16_bytes(
bytes([0x00, 0x2C])
)
prompt_pdu = PromptPdu(
response_required=ResponseRequired.KEEP_ALIVE, pdu_conf=self.pdu_conf
)
Expand Down

0 comments on commit 4044548

Please sign in to comment.