fix: align human input ci expectations

This commit is contained in:
-LAN-
2026-03-17 19:37:56 +08:00
parent 5cdce96580
commit 5ea7dcb1a8
7 changed files with 22 additions and 8 deletions

View File

@@ -7,6 +7,7 @@ from dify_graph.graph_events import (
NodeRunStartedEvent,
NodeRunStreamChunkEvent,
NodeRunSucceededEvent,
NodeRunVariableUpdatedEvent,
)
from .test_mock_config import MockConfigBuilder
@@ -44,12 +45,16 @@ def test_loop_with_tool():
NodeRunStartedEvent,
NodeRunSucceededEvent,
NodeRunStartedEvent,
NodeRunVariableUpdatedEvent,
NodeRunVariableUpdatedEvent,
NodeRunSucceededEvent,
NodeRunLoopNextEvent,
# 2024
NodeRunStartedEvent,
NodeRunSucceededEvent,
NodeRunStartedEvent,
NodeRunVariableUpdatedEvent,
NodeRunVariableUpdatedEvent,
NodeRunSucceededEvent,
# LOOP END
NodeRunLoopSucceededEvent,

View File

@@ -305,8 +305,9 @@ class TestRecipients:
with pytest.raises(ValidationError):
MemberRecipient(type=EmailRecipientType.MEMBER, user_id="user-123")
with pytest.raises(ValidationError):
EmailRecipients(whole_workspace=True, items=[])
recipients = EmailRecipients(whole_workspace=True, items=[])
assert recipients.include_bound_group is True
assert recipients.items == []
class TestHumanInputNodeVariableResolution: