Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix keys delete

Ishaan Jaffba5af3e44b52
diff --git a/tests/test_litellm/proxy/client/cli/test_keys_commands.py b/tests/test_litellm/proxy/client/cli/test_keys_commands.py
index 718ff1709df..ee6fc478ec5 100644
--- a/tests/test_litellm/proxy/client/cli/test_keys_commands.py
+++ b/tests/test_litellm/proxy/client/cli/test_keys_commands.py
@@ -1,7 +1,14 @@
import json
import os
+import sys
from unittest.mock import patch
+sys.path.insert(
+ 0, os.path.abspath("../../..")
+) # Adds the parent directory to the system path
+
+
+
import pytest
from click.testing import CliRunner
@@ -132,7 +139,7 @@ def test_keys_delete_error_handling(mock_keys_client, cli_runner):
assert any(keyword in error_str for keyword in ["connection", "connect", "refused", "error"])
-def test_keys_delete_http_error_handling(mock_keys_client, cli_runner):
+def test_async_keys_delete_http_error_handling(mock_keys_client, cli_runner):
from unittest.mock import Mock
import requests