test: add test to vectorstore
This commit is contained in:
parent
a6644176d4
commit
edf6577f44
1 changed files with 12 additions and 0 deletions
12
tests/test_vectorstore_template.py
Normal file
12
tests/test_vectorstore_template.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
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("/all")
|
||||
assert response.status_code == 200
|
||||
json_response = response.json()
|
||||
vectorstores = json_response["vectorstores"]
|
||||
assert set(vectorstores.keys()) == set(settings.vectorstores)
|
||||
Loading…
Add table
Add a link
Reference in a new issue