fix: mock fuzzy_match_models in SSL verification test

This commit is contained in:
Paul Gauthier (aider) 2025-03-25 14:56:51 -10:00
parent 70847a74c2
commit 6809a7ec3e

View file

@ -24,8 +24,10 @@ class TestSSLVerification(TestCase):
@patch("aider.llm.litellm._load_litellm") @patch("aider.llm.litellm._load_litellm")
@patch("httpx.Client") @patch("httpx.Client")
@patch("httpx.AsyncClient") @patch("httpx.AsyncClient")
@patch("aider.models.fuzzy_match_models", return_value=[])
def test_no_verify_ssl_flag_sets_model_info_manager( def test_no_verify_ssl_flag_sets_model_info_manager(
self, mock_async_client, mock_client, mock_load_litellm, mock_set_verify_ssl, mock_offer_url self, mock_fuzzy_match, mock_async_client, mock_client, mock_load_litellm,
mock_set_verify_ssl, mock_offer_url
): ):
# Prevent actual URL opening # Prevent actual URL opening
mock_offer_url.return_value = False mock_offer_url.return_value = False