diff --git a/tests/test_litellm/proxy/test_proxy_cli.py b/tests/test_litellm/proxy/test_proxy_cli.py index e8ac199e5bb..dfb0a84ad29 100644 --- a/tests/test_litellm/proxy/test_proxy_cli.py +++ b/tests/test_litellm/proxy/test_proxy_cli.py @@ -204,7 +204,13 @@ class TestProxyInitializationHelpers: monkeypatch.chdir(tmp_path) uvicorn_args: dict = {} - with patch("litellm._logging.verbose_proxy_logger.warning") as mock_warning: + with ( + patch( + "litellm.proxy.proxy_cli.importlib.util.find_spec", + return_value=object(), + ), + patch("litellm._logging.verbose_proxy_logger.warning") as mock_warning, + ): ProxyInitializationHelpers._configure_dev_reload( uvicorn_args, str(config_file) )