mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 04:14:59 +00:00
fix: Set AIDER_CHECK_UPDATE environment variable to false in test setup
This commit is contained in:
parent
82ebb7713a
commit
99bf23c5ff
1 changed files with 2 additions and 1 deletions
|
@ -22,6 +22,7 @@ class TestMain(TestCase):
|
|||
def setUp(self):
|
||||
self.original_env = os.environ.copy()
|
||||
os.environ["OPENAI_API_KEY"] = "deadbeef"
|
||||
os.environ["AIDER_CHECK_UPDATE"] = "false"
|
||||
self.original_cwd = os.getcwd()
|
||||
self.tempdir_obj = IgnorantTemporaryDirectory()
|
||||
self.tempdir = self.tempdir_obj.name
|
||||
|
@ -239,7 +240,7 @@ class TestMain(TestCase):
|
|||
patch("aider.main.check_version") as mock_check_version,
|
||||
patch("aider.main.InputOutput") as mock_input_output,
|
||||
):
|
||||
main(["--exit"], input=DummyInput(), output=DummyOutput())
|
||||
main(["--exit", "--check-update"], input=DummyInput(), output=DummyOutput())
|
||||
mock_check_version.assert_called_once()
|
||||
mock_input_output.assert_called_once()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue