refactor(workflow): move agent node back to core workflow (#33431)

This commit is contained in:
99
2026-03-14 22:33:13 +08:00
committed by GitHub
parent 98df8e1d6c
commit 1b6e695520
45 changed files with 1115 additions and 964 deletions

View File

@ -200,10 +200,13 @@ class TestPluginUploadFromPkgApi:
app.test_request_context("/", data=data, content_type="multipart/form-data"),
patch("controllers.console.workspace.plugin.current_account_with_tenant", return_value=(None, "t1")),
patch("controllers.console.workspace.plugin.dify_config.PLUGIN_MAX_PACKAGE_SIZE", 0),
patch("controllers.console.workspace.plugin.PluginService.upload_pkg") as upload_pkg_mock,
):
with pytest.raises(ValueError):
method(api)
upload_pkg_mock.assert_not_called()
class TestPluginInstallFromPkgApi:
def test_install_from_pkg(self, app):
@ -444,10 +447,13 @@ class TestPluginUploadFromBundleApi:
),
patch("controllers.console.workspace.plugin.current_account_with_tenant", return_value=(None, "t1")),
patch("controllers.console.workspace.plugin.dify_config.PLUGIN_MAX_BUNDLE_SIZE", 0),
patch("controllers.console.workspace.plugin.PluginService.upload_bundle") as upload_bundle_mock,
):
with pytest.raises(ValueError):
method(api)
upload_bundle_mock.assert_not_called()
class TestPluginInstallFromGithubApi:
def test_success(self, app):