mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
style: Remove trailing whitespaces and fix code formatting
This commit is contained in:
parent
9ceb766a67
commit
aaa3a8ebda
3 changed files with 16 additions and 22 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue