mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
load env in test
This commit is contained in:
parent
9cd347c1f2
commit
16ac6306a9
1 changed files with 5 additions and 7 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue