From 2448de9263f3a9f18feaf15cf7694ede34ac6d4a Mon Sep 17 00:00:00 2001 From: feiyang_deepnova <736320652@qq.com> Date: Mon, 8 Jul 2024 23:48:33 +0800 Subject: [PATCH] fix: the pythonfunction test error (#2572) fix the test error --- src/backend/base/langflow/components/__init__.py | 2 +- tests/unit/text_experimental_components.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/base/langflow/components/__init__.py b/src/backend/base/langflow/components/__init__.py index 6efe1e1bdc2c..4b64a59e68b4 100644 --- a/src/backend/base/langflow/components/__init__.py +++ b/src/backend/base/langflow/components/__init__.py @@ -3,7 +3,7 @@ "chains", "documentloaders", "embeddings", - "experimental", + "prototypes", "inputs", "memories", "outputs", diff --git a/tests/unit/text_experimental_components.py b/tests/unit/text_experimental_components.py index a4ee47729c2f..d50d98765f60 100644 --- a/tests/unit/text_experimental_components.py +++ b/tests/unit/text_experimental_components.py @@ -1,9 +1,9 @@ -from langflow.components import experimental +from langflow.components import prototypes def test_python_function_component(): # Arrange - python_function_component = experimental.PythonFunctionComponent() + python_function_component = prototypes.PythonFunctionComponent() # Act # function must be a string representation