Add packet_hash to bot kwargs. Closes #268.

This commit is contained in:
Jack Kingsman
2026-06-01 18:50:19 -07:00
parent 50af30f3bb
commit bea51b894d
9 changed files with 95 additions and 39 deletions
+1 -1
View File
@@ -17,7 +17,6 @@ from app.fanout.community_mqtt import (
_base64url_encode,
_build_radio_info,
_build_status_topic,
_calculate_packet_hash,
_decode_packet_fields,
_format_raw_packet,
_generate_jwt_token,
@@ -29,6 +28,7 @@ from app.fanout.mqtt_community import (
_render_packet_topic,
)
from app.keystore import ed25519_sign_expanded
from app.path_utils import calculate_packet_hash as _calculate_packet_hash
def _make_test_keys() -> tuple[bytes, bytes]:
+6
View File
@@ -37,6 +37,7 @@ class TestBotModuleParameterExtraction:
path,
is_outgoing,
path_bytes_per_hop,
packet_hash,
):
captured["is_outgoing"] = is_outgoing
captured["is_dm"] = is_dm
@@ -86,6 +87,7 @@ class TestBotModuleParameterExtraction:
path,
is_outgoing,
path_bytes_per_hop,
packet_hash,
):
captured["is_outgoing"] = is_outgoing
return None
@@ -132,6 +134,7 @@ class TestBotModuleParameterExtraction:
path,
is_outgoing,
path_bytes_per_hop,
packet_hash,
):
captured["path"] = path
captured["path_bytes_per_hop"] = path_bytes_per_hop
@@ -180,6 +183,7 @@ class TestBotModuleParameterExtraction:
path,
is_outgoing,
path_bytes_per_hop,
packet_hash,
):
captured["message_text"] = message_text
captured["sender_name"] = sender_name
@@ -228,6 +232,7 @@ class TestBotModuleParameterExtraction:
path,
is_outgoing,
path_bytes_per_hop,
packet_hash,
):
captured["channel_name"] = channel_name
return None
@@ -275,6 +280,7 @@ class TestBotModuleParameterExtraction:
path,
is_outgoing,
path_bytes_per_hop,
packet_hash,
):
captured["sender_name"] = sender_name
captured["sender_key"] = sender_key