Import AITURK IDE 1.0.0-beta.1 from Hermes 63279301; preserve MIT license
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
"""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"
|
||||
)
|
||||
Reference in New Issue
Block a user