mirror of
https://github.com/langgenius/dify.git
synced 2026-05-17 23:46:23 +08:00
[autofix.ci] apply automated fixes
This commit is contained in:
@ -516,7 +516,7 @@ class TestGenerate:
|
||||
monkeypatch.setattr(ags_module.dify_config, "PUBSUB_REDIS_CHANNEL_TYPE", "streams")
|
||||
mocker.patch(
|
||||
"services.app_generate_service.MessageBasedAppGenerator.retrieve_events",
|
||||
return_value=iter(["data: {\"event\": \"done\"}\n\n"]),
|
||||
return_value=iter(['data: {"event": "done"}\n\n']),
|
||||
)
|
||||
mocker.patch(
|
||||
"services.app_generate_service.WorkflowAppGenerator.convert_to_event_stream",
|
||||
@ -532,7 +532,7 @@ class TestGenerate:
|
||||
streaming=True,
|
||||
)
|
||||
|
||||
assert next(iter(result)) == "data: {\"event\": \"done\"}\n\n"
|
||||
assert next(iter(result)) == 'data: {"event": "done"}\n\n'
|
||||
forwarded_args = params_spy.call_args.kwargs["args"]
|
||||
assert forwarded_args["files"] == files
|
||||
assert forwarded_args["inputs"]["sys_files"] == files
|
||||
|
||||
@ -348,9 +348,7 @@ class TestWorkflowService:
|
||||
|
||||
assert result == mock_workflow
|
||||
|
||||
def test_get_draft_workflow_persists_legacy_sys_files_migration(
|
||||
self, workflow_service, mock_db_session, mocker
|
||||
):
|
||||
def test_get_draft_workflow_persists_legacy_sys_files_migration(self, workflow_service, mock_db_session, mocker):
|
||||
app = TestWorkflowAssociatedDataFactory.create_app_mock()
|
||||
workflow = Workflow(
|
||||
tenant_id=app.tenant_id,
|
||||
|
||||
@ -1458,11 +1458,6 @@
|
||||
"count": 3
|
||||
}
|
||||
},
|
||||
"web/app/components/base/prompt-editor/plugins/component-picker-block/index.tsx": {
|
||||
"no-restricted-imports": {
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/app/components/base/prompt-editor/plugins/component-picker-block/menu.tsx": {
|
||||
"erasable-syntax-only/parameter-properties": {
|
||||
"count": 1
|
||||
@ -2881,11 +2876,6 @@
|
||||
"count": 5
|
||||
}
|
||||
},
|
||||
"web/app/components/workflow-app/hooks/use-workflow-template.ts": {
|
||||
"ts/no-explicit-any": {
|
||||
"count": 2
|
||||
}
|
||||
},
|
||||
"web/app/components/workflow-app/index.tsx": {
|
||||
"ts/no-explicit-any": {
|
||||
"count": 1
|
||||
@ -3218,11 +3208,6 @@
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/app/components/workflow/nodes/_base/components/memory-config.tsx": {
|
||||
"unicorn/prefer-number-properties": {
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/app/components/workflow/nodes/_base/components/mixed-variable-text-input/index.tsx": {
|
||||
"ts/no-explicit-any": {
|
||||
"count": 1
|
||||
@ -3858,11 +3843,6 @@
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/app/components/workflow/nodes/start/use-single-run-form-params.ts": {
|
||||
"ts/no-explicit-any": {
|
||||
"count": 3
|
||||
}
|
||||
},
|
||||
"web/app/components/workflow/nodes/template-transform/default.ts": {
|
||||
"ts/no-explicit-any": {
|
||||
"count": 1
|
||||
|
||||
Reference in New Issue
Block a user