mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 18:08:07 +08:00
fix: resolve test failures and lint errors after segment 5 merge
- Add login_manager mock to controller test fixtures (6 files) - Remove duplicate MemoryConfig import in llm_utils.py - Fix line-too-long in test_workflow_draft_variable.py Made-with: Cursor
This commit is contained in:
@ -2444,6 +2444,8 @@ class TestWorkflowServiceDraftExecution:
|
||||
patch("services.workflow_service.DifyCoreRepositoryFactory") as mock_repo_factory,
|
||||
patch("services.workflow_service.DraftVariableSaver") as mock_saver_cls,
|
||||
patch("services.workflow_service.storage"),
|
||||
patch("services.workflow_service.SandboxProviderService"),
|
||||
patch("services.workflow_service.SandboxService"),
|
||||
):
|
||||
mock_node = MagicMock()
|
||||
mock_node.node_type = BuiltinNodeTypes.START
|
||||
@ -2513,6 +2515,8 @@ class TestWorkflowServiceDraftExecution:
|
||||
patch("services.workflow_service.DifyCoreRepositoryFactory"),
|
||||
patch("services.workflow_service.DraftVariableSaver"),
|
||||
patch("services.workflow_service.storage"),
|
||||
patch("services.workflow_service.SandboxProviderService"),
|
||||
patch("services.workflow_service.SandboxService"),
|
||||
):
|
||||
mock_node = MagicMock()
|
||||
mock_node.node_type = BuiltinNodeTypes.LLM
|
||||
|
||||
Reference in New Issue
Block a user