Skip to content

Commit

Permalink
Move ChatInput import to within flow_component fixture in conftest.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ogabrielluiz committed Oct 22, 2024
1 parent b64e70f commit 0ac0d8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backend/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
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
Expand Down Expand Up @@ -484,6 +483,8 @@ async def added_webhook_test(client, json_webhook_test, logged_in_headers):

@pytest.fixture
async def flow_component(client: TestClient, logged_in_headers):
from langflow.components.inputs.ChatInput import ChatInput

chat_input = ChatInput()
graph = Graph(start=chat_input, end=chat_input)
graph_dict = graph.dump(name="Chat Input Component")
Expand Down

0 comments on commit 0ac0d8a

Please sign in to comment.