Skip to content

Commit 3898152

Browse files
authored
Merge pull request #81 from UiPath/update-cas-chat-types
chore: update version to include cas api/event schema updates
2 parents 6b305b9 + cf9810a commit 3898152

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[project]
22
name = "uipath-runtime"
3-
version = "0.7.1"
3+
version = "0.8.0"
44
description = "Runtime abstractions and interfaces for building agents and automation scripts in the UiPath ecosystem"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"
77
dependencies = [
8-
"uipath-core>=0.3.0, <0.4.0",
8+
"uipath-core>=0.4.0, <0.5.0",
99
]
1010
classifiers = [
1111
"Intended Audience :: Developers",

tests/test_resumable.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from unittest.mock import AsyncMock, Mock
77

88
import pytest
9-
from uipath.core.errors import UiPathPendingTriggerError
9+
from uipath.core.errors import ErrorCategory, UiPathPendingTriggerError
1010

1111
from uipath.runtime import (
1212
UiPathExecuteOptions,
@@ -195,7 +195,7 @@ async def test_resumable_adds_only_new_triggers_on_partial_resume():
195195
async def read_trigger_impl(trigger: UiPathResumeTrigger) -> dict[str, Any]:
196196
if trigger.interrupt_id == "int-1":
197197
return {"approved": True}
198-
raise UiPathPendingTriggerError("still pending")
198+
raise UiPathPendingTriggerError(ErrorCategory.USER, "still pending")
199199

200200
# Replace the mock with new side_effect
201201
trigger_manager.read_trigger = AsyncMock(side_effect=read_trigger_impl) # type: ignore
@@ -235,7 +235,7 @@ async def test_resumable_completes_after_all_triggers_resolved():
235235
async def read_trigger_impl_2(trigger: UiPathResumeTrigger) -> dict[str, Any]:
236236
if trigger.interrupt_id == "int-1":
237237
return {"approved": True}
238-
raise UiPathPendingTriggerError("pending")
238+
raise UiPathPendingTriggerError(ErrorCategory.USER, "pending")
239239

240240
trigger_manager.read_trigger = AsyncMock(side_effect=read_trigger_impl_2) # type: ignore
241241

uv.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)