ref: Move get services out of API methods (#4216)

* Move get services out of API methods

* Rollback files API to be able to mock the dependency
This commit is contained in:
Christophe Bornet 2024-10-22 13:27:31 +02:00 • committed by GitHub
commit c85cd91e09
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 91 additions and 123 deletions

View file

@ -12,10 +12,10 @@ from uuid import UUID
import orjson
import pytest
from asgi_lifespan import LifespanManager
from base.langflow.components.inputs.ChatInput import ChatInput
from dotenv import load_dotenv
from fastapi.testclient import TestClient
from httpx import ASGITransport, AsyncClient
from langflow.components.inputs.ChatInput import ChatInput
from langflow.graph.graph.base import Graph
from langflow.initial_setup.setup import STARTER_FOLDER_NAME
from langflow.services.auth.utils import get_password_hash