mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 09:28:04 +08:00
refactor(workflow): move agent node back to core workflow (#33431)
This commit is contained in:
@ -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):
|
||||
|
||||
Reference in New Issue
Block a user