formatting
This commit is contained in:
parent
fbca59d42c
commit
203b8ff6fe
23 changed files with 73 additions and 63 deletions
|
|
@ -1,7 +1,7 @@
|
|||
# Test this:
|
||||
import pytest
|
||||
from langflow.interface.custom.types import PythonFunction
|
||||
from langflow.utils import constants
|
||||
import pytest
|
||||
|
||||
|
||||
def test_python_function():
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
import json
|
||||
from langflow.graph import Edge, Node, Graph
|
||||
|
||||
import pytest
|
||||
from langflow.utils.payload import build_json, get_root_node
|
||||
from langchain.agents import AgentExecutor
|
||||
from langflow.graph import Edge, Graph, Node
|
||||
from langflow.utils.payload import build_json, get_root_node
|
||||
|
||||
# Test cases for the graph module
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import json
|
||||
from langflow.graph import Graph
|
||||
import pytest
|
||||
|
||||
from langflow import load_flow_from_json
|
||||
from langflow.utils.payload import get_root_node
|
||||
import pytest
|
||||
from langchain.agents import AgentExecutor
|
||||
from langflow import load_flow_from_json
|
||||
from langflow.graph import Graph
|
||||
from langflow.utils.payload import get_root_node
|
||||
|
||||
|
||||
def test_load_flow_from_json():
|
||||
|
|
|
|||
|
|
@ -1,12 +1,13 @@
|
|||
from unittest import mock
|
||||
|
||||
import pytest
|
||||
from langflow.utils.validate import (
|
||||
create_function,
|
||||
execute_function,
|
||||
extract_function_name,
|
||||
validate_code,
|
||||
execute_function,
|
||||
)
|
||||
import pytest
|
||||
from requests.exceptions import MissingSchema
|
||||
from unittest import mock
|
||||
|
||||
|
||||
def test_validate_code():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue