add load_dotenv to tests
This commit is contained in:
parent
0bb19d8933
commit
440f2a9a86
1 changed files with 4 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue