mirror of
https://github.com/langgenius/dify.git
synced 2026-09-05 08:48:10 +08:00
test: move mocked model and tool cases to unit tests
This commit is contained in:
parent
fb937f9df7
commit
5beb0519ea
@ -1,3 +1,5 @@
|
||||
"""HTTP fixture for API-tool unit tests."""
|
||||
|
||||
import json
|
||||
from typing import Literal
|
||||
|
||||
@ -4,7 +4,7 @@ from core.tools.entities.common_entities import I18nObject
|
||||
from core.tools.entities.tool_bundle import ApiToolBundle
|
||||
from core.tools.entities.tool_entities import ToolEntity, ToolIdentity
|
||||
|
||||
pytest_plugins = ("tests.integration_tests.tools.__mock.http",)
|
||||
pytest_plugins = ("tests.unit_tests.core.tools.custom_tool.api_tool_http_fixture",)
|
||||
|
||||
tool_bundle = {
|
||||
"server_url": "http://www.example.com/{path_param}",
|
||||
@ -1,3 +1,5 @@
|
||||
"""Unit coverage for LLM node execution with model boundaries replaced by test doubles."""
|
||||
|
||||
import json
|
||||
import time
|
||||
import uuid
|
||||
@ -1,3 +1,5 @@
|
||||
"""Unit coverage for tool-node invocation with the tool boundary patched."""
|
||||
|
||||
import time
|
||||
import uuid
|
||||
from unittest.mock import MagicMock, patch
|
||||
Loading…
Reference in New Issue
Block a user