ref: Auto-fix ruff rules in tests (#4154)
This commit is contained in:
parent
51b3909d60
commit
45c8f98692
80 changed files with 359 additions and 456 deletions
|
|
@ -2,7 +2,6 @@ from langflow.graph import Graph
|
|||
from langflow.initial_setup.setup import load_starter_projects
|
||||
from langflow.load import load_flow_from_json
|
||||
|
||||
|
||||
# TODO: UPDATE BASIC EXAMPLE
|
||||
# def test_load_flow_from_json():
|
||||
# """Test loading a flow from a json file"""
|
||||
|
|
@ -20,9 +19,8 @@ from langflow.load import load_flow_from_json
|
|||
|
||||
|
||||
def test_load_flow_from_json_object():
|
||||
"""Test loading a flow from a json file and applying tweaks"""
|
||||
_, projects = zip(*load_starter_projects())
|
||||
project = projects[0]
|
||||
"""Test loading a flow from a json file and applying tweaks."""
|
||||
project = load_starter_projects()[0][1]
|
||||
loaded = load_flow_from_json(project)
|
||||
assert loaded is not None
|
||||
assert isinstance(loaded, Graph)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue