mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 04:14:59 +00:00
feat: Add comprehensive tests for SSL verification in ModelInfoManager and main
This commit is contained in:
parent
f894240fbb
commit
9ceb766a67
3 changed files with 157 additions and 0 deletions
|
@ -683,6 +683,16 @@ class TestMain(TestCase):
|
|||
return_coder=True,
|
||||
)
|
||||
self.assertTrue(coder.detect_urls)
|
||||
|
||||
@patch("aider.models.ModelInfoManager.set_verify_ssl")
|
||||
def test_no_verify_ssl_sets_model_info_manager(self, mock_set_verify_ssl):
|
||||
with GitTemporaryDirectory():
|
||||
main(
|
||||
["--no-verify-ssl", "--exit", "--yes"],
|
||||
input=DummyInput(),
|
||||
output=DummyOutput(),
|
||||
)
|
||||
mock_set_verify_ssl.assert_called_once_with(False)
|
||||
|
||||
def test_pytest_env_vars(self):
|
||||
# Verify that environment variables from pytest.ini are properly set
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue