File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -257,30 +257,6 @@ async def test_chat_runtime_stream_yields_all_events():
257257 assert cast (AsyncMock , bridge .emit_message_event ).await_count == 2
258258
259259
260- @pytest .mark .asyncio
261- async def test_chat_runtime_emits_exchange_end_on_success ():
262- """The runtime always emits the exchange end event on successful completion.
263-
264- Whether that event is honored (e.g. suppressed to keep the exchange open) is a
265- decision for the bridge implementation, not this low-level runtime.
266- """
267-
268- runtime_impl = StreamingMockRuntime (messages = ["Hello" ])
269- bridge = make_chat_bridge_mock ()
270-
271- chat_runtime = UiPathChatRuntime (
272- delegate = runtime_impl ,
273- chat_bridge = bridge ,
274- )
275-
276- result = await chat_runtime .execute ({})
277-
278- await chat_runtime .dispose ()
279-
280- assert result .status == UiPathRuntimeStatus .SUCCESSFUL
281- cast (AsyncMock , bridge .emit_exchange_end_event ).assert_awaited_once ()
282-
283-
284260@pytest .mark .asyncio
285261async def test_chat_runtime_handles_errors ():
286262 """On unexpected errors, UiPathChatRuntime should propagate them."""
You can’t perform that action at this time.
0 commit comments