Files
aiturk-hermes-ide/tests/gateway/test_buzz_progress_thread_routing.py
T

27 lines
735 B
Python

"""Buzz progress/status thread-routing regressions."""
from gateway.run import _resolve_progress_thread_id
def test_buzz_progress_without_source_thread_uses_triggering_event():
"""Progress for a Buzz reply must inherit the triggering event anchor."""
assert (
_resolve_progress_thread_id(
"buzz",
source_thread_id=None,
event_message_id="buzz-event-123",
)
== "buzz-event-123"
)
def test_buzz_progress_preserves_explicit_source_thread():
assert (
_resolve_progress_thread_id(
"buzz",
source_thread_id="explicit-thread-root",
event_message_id="buzz-event-123",
)
== "explicit-thread-root"
)