add load_dotenv to tests

This commit is contained in:
italojohnny 2024-05-28 15:55:29 -03:00
commit 440f2a9a86

View file

@ -8,6 +8,7 @@ from typing import TYPE_CHECKING, AsyncGenerator
import orjson
import pytest
from dotenv import load_dotenv
from fastapi.testclient import TestClient
from httpx import AsyncClient
from langflow.graph.graph.base import Graph
@ -27,6 +28,9 @@ if TYPE_CHECKING:
from langflow.services.database.service import DatabaseService
load_dotenv()
def pytest_configure(config):
config.addinivalue_line("markers", "noclient: don't create a client for this test")
data_path = Path(__file__).parent.absolute() / "data"