fix: py style and unittest

This commit is contained in:
hjlarry 2026-04-11 20:25:03 +08:00
parent fb27f368e8
commit cbeeccf13b
2 changed files with 3 additions and 0 deletions

View File

@ -81,6 +81,7 @@ class WorkflowCollaborationService:
if event_type == "sync_request":
leader_sid = self._repository.get_current_leader(workflow_id)
target_sid: str | None
if leader_sid and self.is_session_active(workflow_id, leader_sid):
target_sid = leader_sid
else:

View File

@ -61,6 +61,7 @@ class TestWorkflowCommentService:
mentioned_user_ids=["user-2"],
content="hello",
)
expected_app_url = f"{service_module.dify_config.CONSOLE_WEB_URL.rstrip('/')}/app/app-1/workflow"
assert payloads == [
{
@ -70,6 +71,7 @@ class TestWorkflowCommentService:
"commenter_name": "Commenter",
"app_name": "My App",
"comment_content": "hello",
"app_url": expected_app_url,
}
]