mirror of
https://github.com/Aider-AI/aider.git
synced 2026-02-06 20:26:38 +01:00
fix: Set AIDER_CHECK_UPDATE environment variable to false in test setup
This commit is contained in:
committed by
Paul Gauthier (aider)
parent
82ebb7713a
commit
99bf23c5ff
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user