test: remove analytics env vars and add debug dump

This commit is contained in:
Paul Gauthier 2024-11-30 11:32:48 -08:00 committed by Paul Gauthier (aider)
parent 14902f5b9a
commit 3f770cc5c0

View file

@ -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()