mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 09:28:04 +08:00
test: unit test cases for sub modules in core.app (except core.app.apps) (#32476)
This commit is contained in:
@ -110,7 +110,7 @@ def test_encrypt_tool_parameters():
|
||||
assert encrypted["plain"] == "x"
|
||||
|
||||
|
||||
def test_decrypt_tool_parameters_cache_hit_and_miss():
|
||||
def test_decrypt_tool_parameters_cache_hit_and_miss(monkeypatch):
|
||||
manager = _build_manager()
|
||||
|
||||
with (
|
||||
@ -139,7 +139,7 @@ def test_delete_tool_parameters_cache():
|
||||
mock_delete.assert_called_once()
|
||||
|
||||
|
||||
def test_configuration_manager_decrypt_suppresses_errors():
|
||||
def test_configuration_manager_decrypt_suppresses_errors(monkeypatch):
|
||||
manager = _build_manager()
|
||||
with (
|
||||
patch.object(ToolParameterCache, "get", return_value=None),
|
||||
|
||||
Reference in New Issue
Block a user