chore: add pytest-env and remove debug dump from tests

This commit is contained in:
Paul Gauthier 2024-11-30 11:35:40 -08:00 committed by Paul Gauthier (aider)
parent 6b4222ec48
commit f448d3e2db
3 changed files with 5 additions and 2 deletions

View file

@ -3,6 +3,7 @@
# pip-compile --output-file=requirements-dev.txt requirements-dev.in --upgrade # pip-compile --output-file=requirements-dev.txt requirements-dev.in --upgrade
# #
pytest pytest
pytest-env
pip-tools pip-tools
lox lox
matplotlib matplotlib

View file

@ -145,6 +145,10 @@ pyproject-hooks==1.2.0
# build # build
# pip-tools # pip-tools
pytest==8.3.3 pytest==8.3.3
# via
# -r requirements/requirements-dev.in
# pytest-env
pytest-env==1.1.5
# via -r requirements/requirements-dev.in # via -r requirements/requirements-dev.in
python-dateutil==2.9.0.post0 python-dateutil==2.9.0.post0
# via # via

View file

@ -35,8 +35,6 @@ class TestMain(TestCase):
self.webbrowser_patcher = patch("aider.io.webbrowser.open") self.webbrowser_patcher = patch("aider.io.webbrowser.open")
self.mock_webbrowser = self.webbrowser_patcher.start() self.mock_webbrowser = self.webbrowser_patcher.start()
dump(os.environ.get("AIDER_ANALYTICS"))
def tearDown(self): def tearDown(self):
os.chdir(self.original_cwd) os.chdir(self.original_cwd)
self.tempdir_obj.cleanup() self.tempdir_obj.cleanup()