🔥 refactor(run.py): remove unused imports and commented out code in run.py
🔥 refactor(test_cache.py): remove unused imports and commented out code in test_cache.py
This commit is contained in:
parent
00290d0f9e
commit
7a63b5635d
2 changed files with 0 additions and 43 deletions
|
|
@ -1,11 +1,7 @@
|
|||
import json
|
||||
from langflow.graph import Graph
|
||||
from langflow.services.cache.utils import compute_dict_hash
|
||||
|
||||
import pytest
|
||||
from langflow.interface.run import (
|
||||
build_langchain_object_with_caching,
|
||||
)
|
||||
|
||||
|
||||
def get_graph(_type="basic"):
|
||||
|
|
@ -41,14 +37,6 @@ def langchain_objects_are_equal(obj1, obj2):
|
|||
return str(obj1) == str(obj2)
|
||||
|
||||
|
||||
# Test build_langchain_object_with_caching
|
||||
def test_build_langchain_object_with_caching(client, basic_data_graph):
|
||||
session_id = compute_dict_hash(basic_data_graph)
|
||||
build_langchain_object_with_caching.clear_cache(session_id)
|
||||
graph = build_langchain_object_with_caching(basic_data_graph)
|
||||
assert graph is not None
|
||||
|
||||
|
||||
# Test build_graph
|
||||
def test_build_graph(basic_data_graph):
|
||||
graph = Graph.from_payload(basic_data_graph)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue