fix test_proxy_server_prisma_setup

This commit is contained in:
Ishaan Jaff 2024-11-01 17:52:30 +05:30
parent 8c9dfd5f69
commit 1bb8b8bed4

View file

@ -1911,7 +1911,7 @@ async def test_proxy_server_prisma_setup():
mock_client = mock_prisma_client.return_value # This is the mocked instance
mock_client.check_view_exists = AsyncMock() # Mock the check_view_exists method
ProxyStartupEvent._setup_prisma_client(
await ProxyStartupEvent._setup_prisma_client(
database_url=os.getenv("DATABASE_URL"),
proxy_logging_obj=ProxyLogging(user_api_key_cache=user_api_key_cache),
user_api_key_cache=user_api_key_cache,