Skip to content

Commit a9e4c35

Browse files
fix: remove test
1 parent fb37dc9 commit a9e4c35

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

tests/test_chat.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff 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
285261
async def test_chat_runtime_handles_errors():
286262
"""On unexpected errors, UiPathChatRuntime should propagate them."""

0 commit comments

Comments
 (0)