Skip to content

The agent that grows with you

test(gateway): queued-ledger source stub carries parent_chat_id

teknium1724ada32d2dc
diff --git a/tests/gateway/test_queued_final_ledger.py b/tests/gateway/test_queued_final_ledger.py
index 764c733a49a..9764ce25abb 100644
--- a/tests/gateway/test_queued_final_ledger.py
+++ b/tests/gateway/test_queued_final_ledger.py
@@ -60,8 +60,10 @@ def _rows():
def _source(*, chat_id=CHAT, thread_id=None, chat_type="dm"):
+ # parent_chat_id is a real SessionSource field; the queued-followup path reads it to pin the
+ # channel inputs, so the stub carries it like every real source does.
return SimpleNamespace(platform=Platform.TELEGRAM, chat_id=chat_id, thread_id=thread_id,
- chat_type=chat_type)
+ chat_type=chat_type, parent_chat_id=None)
def _telegram_adapter(send_result=None):