From ba5af3e44b5284bc2f0b2a653bb36eb08fb74560 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Thu, 3 Jul 2025 11:18:10 -0700 Subject: [PATCH] fix keys delete --- .../test_litellm/proxy/client/cli/test_keys_commands.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 718ff1709d..ee6fc478ec 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