mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 20:35:00 +00:00
style: Format code with linter
This commit is contained in:
parent
85b9bdd8f4
commit
96bde4ad03
2 changed files with 14 additions and 8 deletions
|
@ -691,7 +691,10 @@ class TestMain(TestCase):
|
||||||
with patch("aider.models.Model") as mock_model:
|
with patch("aider.models.Model") as mock_model:
|
||||||
# Configure the mock to avoid the TypeError
|
# Configure the mock to avoid the TypeError
|
||||||
mock_model.return_value.info = {}
|
mock_model.return_value.info = {}
|
||||||
mock_model.return_value.validate_environment.return_value = {"missing_keys": [], "keys_in_environment": []}
|
mock_model.return_value.validate_environment.return_value = {
|
||||||
|
"missing_keys": [],
|
||||||
|
"keys_in_environment": [],
|
||||||
|
}
|
||||||
|
|
||||||
main(
|
main(
|
||||||
["--no-verify-ssl", "--exit", "--yes"],
|
["--no-verify-ssl", "--exit", "--yes"],
|
||||||
|
|
|
@ -34,7 +34,10 @@ class TestSSLVerification(TestCase):
|
||||||
with patch("aider.models.Model") as mock_model:
|
with patch("aider.models.Model") as mock_model:
|
||||||
# Configure the mock to avoid the TypeError
|
# Configure the mock to avoid the TypeError
|
||||||
mock_model.return_value.info = {}
|
mock_model.return_value.info = {}
|
||||||
mock_model.return_value.validate_environment.return_value = {"missing_keys": [], "keys_in_environment": []}
|
mock_model.return_value.validate_environment.return_value = {
|
||||||
|
"missing_keys": [],
|
||||||
|
"keys_in_environment": [],
|
||||||
|
}
|
||||||
|
|
||||||
with patch("aider.llm.litellm._lazy_module", mock_module):
|
with patch("aider.llm.litellm._lazy_module", mock_module):
|
||||||
# Run main with --no-verify-ssl flag
|
# Run main with --no-verify-ssl flag
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue