🐛 fix(test_custom_component.py): update assertion to expect return_type as a list instead of a string 🐛 fix(test_vectorstore_template.py): update assertion to check if all vectorstores in settings are present in the response
13 lines
485 B
Python
13 lines
485 B
Python
from fastapi.testclient import TestClient
|
|
from langflow.settings import settings
|
|
|
|
|
|
# check that all agents are in settings.agents
|
|
# are in json_response["agents"]
|
|
def test_vectorstores_settings(client: TestClient):
|
|
response = client.get("api/v1/all")
|
|
assert response.status_code == 200
|
|
json_response = response.json()
|
|
vectorstores = json_response["vectorstores"]
|
|
settings_vecs = set(settings.VECTORSTORES)
|
|
assert all(vs in vectorstores for vs in settings_vecs)
|