Fix various issues and refactor code (#1671)
* Update setup_mode to "Sync" in AstraDBVectorStoreComponent * Fix search_kwargs default value in PineconeSearch and QdrantSearch components * Update Playwright test and ChatMessage component in chat_io.spec.ts and chatMessage/index.tsx * Refactor test_pickle_each_vertex function in test_graph.py * Refactor database service to improve performance and readability
This commit is contained in:
parent
3478d4c05e
commit
4ee9b72634
9 changed files with 451 additions and 83 deletions
|
|
@ -4,6 +4,7 @@ from uuid import uuid4
|
|||
import pytest
|
||||
from fastapi import status
|
||||
from fastapi.testclient import TestClient
|
||||
|
||||
from langflow.interface.custom.directory_reader.directory_reader import DirectoryReader
|
||||
from langflow.services.deps import get_settings_service
|
||||
from langflow.template.frontend_node.chains import TimeTravelGuideChainNode
|
||||
|
|
@ -447,7 +448,7 @@ def test_successful_run_no_payload(client, starter_project, created_api_key):
|
|||
assert all([name in display_names for name in ["Chat Output"]])
|
||||
inner_results = [output.get("results").get("result") for output in outputs_dict.get("outputs")]
|
||||
|
||||
assert all([len(result) > 0 for result in inner_results]), inner_results
|
||||
assert all([result is not None for result in inner_results]), inner_results
|
||||
|
||||
|
||||
def test_successful_run_with_output_type_text(client, starter_project, created_api_key):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue