mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
test: remove analytics env vars and add debug dump
This commit is contained in:
parent
14902f5b9a
commit
3f770cc5c0
1 changed files with 2 additions and 2 deletions
|
@ -23,8 +23,6 @@ class TestMain(TestCase):
|
|||
self.original_env = os.environ.copy()
|
||||
os.environ["OPENAI_API_KEY"] = "deadbeef"
|
||||
os.environ["AIDER_CHECK_UPDATE"] = "false"
|
||||
os.environ["AIDER_ANALYTICS"] = "false"
|
||||
os.environ["AIDER_ANALYTICS_LOG"] = "/dev/null"
|
||||
self.original_cwd = os.getcwd()
|
||||
self.tempdir_obj = IgnorantTemporaryDirectory()
|
||||
self.tempdir = self.tempdir_obj.name
|
||||
|
@ -37,6 +35,8 @@ class TestMain(TestCase):
|
|||
self.webbrowser_patcher = patch("aider.io.webbrowser.open")
|
||||
self.mock_webbrowser = self.webbrowser_patcher.start()
|
||||
|
||||
dump(os.environ.get("AIDER_ANALYTICS"))
|
||||
|
||||
def tearDown(self):
|
||||
os.chdir(self.original_cwd)
|
||||
self.tempdir_obj.cleanup()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue