load env in test

This commit is contained in:
Laurien Lummer 2025-04-23 15:05:46 +02:00
parent 9cd347c1f2
commit 16ac6306a9

View file

@ -1,24 +1,22 @@
import asyncio import asyncio
import os import os
import sys import sys
import time
import uuid import uuid
from datetime import datetime, timedelta, timezone from datetime import datetime, timedelta, timezone
from typing import Any, Dict, List, Optional
from unittest.mock import AsyncMock, MagicMock, Mock, patch
from litellm.caching.caching import DualCache, RedisCache
import aiohttp import aiohttp
import pytest import pytest
import pytest_asyncio import pytest_asyncio
from fastapi import Request from dotenv import load_dotenv
from fastapi.testclient import TestClient
from litellm.caching.caching import DualCache
load_dotenv()
sys.path.insert( sys.path.insert(
0, os.path.abspath("../../..") 0, os.path.abspath("../../..")
) # Adds the parent directory to the system path ) # Adds the parent directory to the system path
from litellm._logging import verbose_proxy_logger
from litellm.proxy.common_utils.reset_budget_job import ResetBudgetJob from litellm.proxy.common_utils.reset_budget_job import ResetBudgetJob
from litellm.proxy.utils import PrismaClient, ProxyLogging from litellm.proxy.utils import PrismaClient, ProxyLogging