feat: added agents tests

This commit is contained in:
Gabriel Almeida 2023-04-06 14:53:44 -03:00 • committed by Gabriel Luiz Freitas Almeida
commit 59baa407d2
2 changed files with 185 additions and 0 deletions

View file

@ -1,4 +1,13 @@
from fastapi.testclient import TestClient
from langflow.settings import settings
def test_chains_settings(client: TestClient):
response = client.get("/all")
assert response.status_code == 200
json_response = response.json()
chains = json_response["chains"]
assert set(chains.keys()) == set(settings.chains)
# Test the ConversationChain object