Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[project]
name = "uipath-runtime"
version = "0.7.1"
version = "0.8.0"
description = "Runtime abstractions and interfaces for building agents and automation scripts in the UiPath ecosystem"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.11"
dependencies = [
"uipath-core>=0.3.0, <0.4.0",
"uipath-core>=0.4.0, <0.5.0",
]
classifiers = [
"Intended Audience :: Developers",
Expand Down
6 changes: 3 additions & 3 deletions tests/test_resumable.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from unittest.mock import AsyncMock, Mock

import pytest
from uipath.core.errors import UiPathPendingTriggerError
from uipath.core.errors import ErrorCategory, UiPathPendingTriggerError

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

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

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

Expand Down
10 changes: 5 additions & 5 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.