diff --git a/api/tests/integration_tests/tools/__mock/http.py b/api/tests/unit_tests/core/tools/custom_tool/api_tool_http_fixture.py similarity index 95% rename from api/tests/integration_tests/tools/__mock/http.py rename to api/tests/unit_tests/core/tools/custom_tool/api_tool_http_fixture.py index fb2e3abcee7..18e3bbeac77 100644 --- a/api/tests/integration_tests/tools/__mock/http.py +++ b/api/tests/unit_tests/core/tools/custom_tool/api_tool_http_fixture.py @@ -1,3 +1,5 @@ +"""HTTP fixture for API-tool unit tests.""" + import json from typing import Literal diff --git a/api/tests/integration_tests/tools/api_tool/test_api_tool.py b/api/tests/unit_tests/core/tools/custom_tool/test_api_tool_request_assembly.py similarity index 95% rename from api/tests/integration_tests/tools/api_tool/test_api_tool.py rename to api/tests/unit_tests/core/tools/custom_tool/test_api_tool_request_assembly.py index 9079aa7d6d2..b811298e190 100644 --- a/api/tests/integration_tests/tools/api_tool/test_api_tool.py +++ b/api/tests/unit_tests/core/tools/custom_tool/test_api_tool_request_assembly.py @@ -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}", diff --git a/api/tests/integration_tests/workflow/nodes/test_llm.py b/api/tests/unit_tests/core/workflow/nodes/llm/test_llm_node_execution_behavior.py similarity index 99% rename from api/tests/integration_tests/workflow/nodes/test_llm.py rename to api/tests/unit_tests/core/workflow/nodes/llm/test_llm_node_execution_behavior.py index 2e9b7317f69..87db1808a36 100644 --- a/api/tests/integration_tests/workflow/nodes/test_llm.py +++ b/api/tests/unit_tests/core/workflow/nodes/llm/test_llm_node_execution_behavior.py @@ -1,3 +1,5 @@ +"""Unit coverage for LLM node execution with model boundaries replaced by test doubles.""" + import json import time import uuid diff --git a/api/tests/integration_tests/workflow/nodes/test_tool.py b/api/tests/unit_tests/core/workflow/nodes/tool/test_tool_node_invocation_behavior.py similarity index 98% rename from api/tests/integration_tests/workflow/nodes/test_tool.py rename to api/tests/unit_tests/core/workflow/nodes/tool/test_tool_node_invocation_behavior.py index d3e248cc28c..0369cff60fa 100644 --- a/api/tests/integration_tests/workflow/nodes/test_tool.py +++ b/api/tests/unit_tests/core/workflow/nodes/tool/test_tool_node_invocation_behavior.py @@ -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