Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

# [unreleased]

# [v0.5.1] 2025-02-10

- Bump allowed `spacepackets` to v0.28.0

# [v0.5.0] 2025-01-17

## Added
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
name = "cfdp-py"
description = "Library for high level CCSDS File Delivery Protocol (CFDP) components"
readme = "README.md"
version = "0.5.0"
version = "0.5.1"
requires-python = ">=3.9"
license = {text = "Apache-2.0"}
authors = [
Expand All @@ -27,7 +27,7 @@ classifiers = [
"Topic :: Scientific/Engineering"
]
dependencies = [
"spacepackets>=0.26.0, <=0.27",
"spacepackets>=0.26.0, <=0.28",
"crcmod~=1.7",
"deprecation~=2.1",
]
Expand Down
19 changes: 12 additions & 7 deletions tests/test_src_handler_restricted.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,19 +114,23 @@ def test_src_handler_restricted(self):
self.assertTrue(fsm.states.packets_ready)
self.assertEqual(fsm.states.num_packets_ready, 1)
next_pdu = self.source_handler.get_next_packet()
self.assertIsInstance(next_pdu.base, MetadataPdu)
assert next_pdu is not None
self.assertIsInstance(next_pdu.pdu, MetadataPdu)
fsm = self.source_handler.state_machine()
self.assertTrue(fsm.states.packets_ready)
file_data = self.source_handler.get_next_packet()
self.assertIsInstance(file_data.base, FileDataPdu)
next_pdu = self.source_handler.get_next_packet()
assert next_pdu is not None
self.assertIsInstance(next_pdu.pdu, FileDataPdu)
fsm = self.source_handler.state_machine()
self.assertTrue(fsm.states.packets_ready)
eof_data = self.source_handler.get_next_packet()
self.assertIsInstance(eof_data.base, EofPdu)
next_pdu = self.source_handler.get_next_packet()
assert next_pdu is not None
self.assertIsInstance(next_pdu.pdu, EofPdu)
assert isinstance(next_pdu.pdu, EofPdu)
# Send ACK
pdu_conf = PduConfig(
direction=Direction.TOWARDS_SENDER,
transaction_seq_num=eof_data.base.transaction_seq_num,
transaction_seq_num=next_pdu.pdu.transaction_seq_num,
source_entity_id=self.source_id,
dest_entity_id=self.dest_id,
trans_mode=TransmissionMode.ACKNOWLEDGED,
Expand All @@ -147,6 +151,7 @@ def test_src_handler_restricted(self):
fsm = self.source_handler.state_machine(packet=finished)
self.assertTrue(fsm.states.packets_ready)
finished_ack = self.source_handler.get_next_packet()
self.assertIsInstance(finished_ack.base, AckPdu)
assert finished_ack is not None
self.assertIsInstance(finished_ack.pdu, AckPdu)
fsm = self.source_handler.state_machine()
self.assertEqual(fsm.states.state, CfdpState.IDLE)