style: Remove trailing whitespaces and fix code formatting

This commit is contained in:
Paul Gauthier (aider) 2025-03-05 18:39:29 -08:00
parent 9ceb766a67
commit aaa3a8ebda
3 changed files with 16 additions and 22 deletions

View file

@ -32,17 +32,13 @@ class TestModelInfoManager(TestCase):
# Test with default verify_ssl=True
self.manager._update_cache()
mock_get.assert_called_with(
self.manager.MODEL_INFO_URL, timeout=5, verify=True
)
mock_get.assert_called_with(self.manager.MODEL_INFO_URL, timeout=5, verify=True)
# Test with verify_ssl=False
mock_get.reset_mock()
self.manager.set_verify_ssl(False)
self.manager._update_cache()
mock_get.assert_called_with(
self.manager.MODEL_INFO_URL, timeout=5, verify=False
)
mock_get.assert_called_with(self.manager.MODEL_INFO_URL, timeout=5, verify=False)
def test_lazy_loading_cache(self):
# Create a cache file
@ -81,6 +77,4 @@ class TestModelInfoManager(TestCase):
result = self.manager.get_model_from_cached_json_db("test_model")
# Verify _update_cache was called with verify=False
mock_get.assert_called_with(
self.manager.MODEL_INFO_URL, timeout=5, verify=False
)
mock_get.assert_called_with(self.manager.MODEL_INFO_URL, timeout=5, verify=False)