fix: fix tests

This commit is contained in:
Krrish Dholakia 2024-04-19 16:21:15 -07:00
parent b3a8c2885b
commit 1a031e0046
2 changed files with 5 additions and 4 deletions

View file

@ -65,13 +65,14 @@ async def test_completion_with_caching_bad_call():
- Assert failure callback gets called
"""
litellm.set_verbose = True
sl = ServiceLogging(mock_testing=True)
try:
from litellm.caching import RedisCache
litellm.service_callback = ["prometheus_system"]
sl = ServiceLogging(mock_testing=True)
RedisCache(host="hello-world", **{"service_logger_obj": sl})
RedisCache(host="hello-world", service_logger_obj=sl)
except Exception as e:
print(f"Receives exception = {str(e)}")

View file

@ -33,7 +33,7 @@ async def test_router_async_caching_with_ssl_url():
"rpm": 10000,
},
],
redis_url=os.getenv("REDIS_URL"),
redis_url=os.getenv("REDIS_SSL_URL"),
)
response = await router.cache.redis_cache.ping()
@ -60,7 +60,7 @@ def test_router_sync_caching_with_ssl_url():
"rpm": 10000,
},
],
redis_url=os.getenv("REDIS_URL"),
redis_url=os.getenv("REDIS_SSL_URL"),
)
response = router.cache.redis_cache.sync_ping()