Feat: move other tools to different folders (#8164)
* delete data and transfer data to dataframe * [autofix.ci] apply automated fixes * create a new bundle for search * fix type for dataframe * add data_to_dataframe function * [autofix.ci] apply automated fixes * fix test because of files movement * delete message and text * json update * fix search yahoo test * fix run_model output type * add tavily bundle * move other tools * [autofix.ci] apply automated fixes * add tavily bundle * move other tools * [autofix.ci] apply automated fixes * update python repl import path * autofix * fix test * fix frontend test --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
This commit is contained in:
parent
61b89b000a
commit
d84ea5c9b7
15 changed files with 100 additions and 52 deletions
|
|
@ -2,7 +2,7 @@ from tests.integration.utils import run_single_component
|
|||
|
||||
|
||||
async def test_mcp_component():
|
||||
from langflow.components.tools.mcp_component import MCPToolsComponent
|
||||
from langflow.components.data.mcp_component import MCPToolsComponent
|
||||
|
||||
inputs = {}
|
||||
await run_single_component(
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import pytest
|
||||
from langflow.components.tools.calculator_core import CalculatorComponent
|
||||
from langflow.components.helpers.calculator_core import CalculatorComponent
|
||||
|
||||
from tests.base import ComponentTestBaseWithoutClient
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import asyncio
|
|||
from unittest.mock import AsyncMock, MagicMock, patch
|
||||
|
||||
import pytest
|
||||
from langflow.components.tools.mcp_component import MCPSseClient, MCPStdioClient, MCPToolsComponent
|
||||
from langflow.components.data.mcp_component import MCPSseClient, MCPStdioClient, MCPToolsComponent
|
||||
|
||||
from tests.base import ComponentTestBaseWithoutClient, VersionComponentMapping
|
||||
|
||||
|
|
@ -99,7 +99,7 @@ class TestMCPToolsComponent(ComponentTestBaseWithoutClient):
|
|||
# Test tool options are updated
|
||||
assert "options" in updated_config["tool"]
|
||||
|
||||
@patch("langflow.components.tools.mcp_component.create_tool_coroutine")
|
||||
@patch("langflow.components.data.mcp_component.create_tool_coroutine")
|
||||
async def test_build_output(self, mock_create_coroutine, component_class, default_kwargs, mock_tool):
|
||||
"""Test building output with a tool."""
|
||||
component = component_class(**default_kwargs)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import pytest
|
||||
from langflow.components.tools import PythonREPLComponent
|
||||
from langflow.components.processing import PythonREPLComponent
|
||||
|
||||
from tests.base import DID_NOT_EXIST, ComponentTestBaseWithoutClient
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue