🐛 fix(test_cache.py): import correct compute_dict_hash function from langflow.services.cache.utils module

🐛 fix(test_cache.py): fix clear_cache function call by passing session_id parameter
🐛 fix(test_cache_manager.py): import CacheManager from langflow.services.chat.cache module instead of langflow.services.cache.manager
🐛 fix(test_cli.py): convert temp_dir to string before checking if it is in COMPONENTS_PATH
🐛 fix(test_process.py): fix clear_cache function call by passing session_id parameter
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-08-16 22:38:18 -03:00
commit d39dd5fc4a
4 changed files with 7 additions and 21 deletions

View file

@ -218,7 +218,7 @@ def test_load_langchain_object_with_no_cached_session(client, basic_graph_data):
basic_graph_data, "non_existent_session"
)
# Clear the cache
build_sorted_vertices_with_caching.clear_cache()
build_sorted_vertices_with_caching.clear_cache(session_id1)
# Use the new session_id to get the langchain_object again
langchain_object2, artifacts2, session_id2 = load_langchain_object(
basic_graph_data, session_id1