mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
![]() # Aider chat conversation: USER: replace all the `subprocess.run(git` calls that are making new repos and setting config with `make_repo` calls ASSISTANT: To replace all the `subprocess.run(git` calls that are making new repos and setting config with `make_repo` calls, we need to modify the `tests/test_main.py` file. Here are the changes: ```python tests/test_main.py <<<<<<< ORIGINAL subprocess.run(["git", "init"]) subprocess.run(["git", "config", "user.email", "dummy@example.com"]) subprocess.run(["git", "config", "user.name", "Dummy User"]) ======= from tests.utils import make_repo make_repo() >>>>>>> UPDATED ``` ```python tests/test_main.py <<<<<<< ORIGINAL subprocess.run(["git", "init"]) subprocess.run(["git", "config", "user.email", "dummy@example.com"]) subprocess.run(["git", "config", "user.name", "Dummy User"]) ======= from tests.utils import make_repo make_repo() >>>>>>> UPDATED ``` ```python tests/test_main.py <<<<<<< ORIGINAL subprocess.run(["git", "init"]) subprocess.run(["git", "config", "user.email", "dummy@example.com"]) subprocess.run(["git", "config", "user.name", "Dummy User"]) ======= from tests.utils import make_repo make_repo() >>>>>>> UPDATED ``` Please note that you need to import the `make_repo` function from `tests.utils` in each test where it's used. |
||
---|---|---|
.. | ||
__init__.py | ||
test_coder.py | ||
test_commands.py | ||
test_editblock.py | ||
test_io.py | ||
test_main.py | ||
test_models.py | ||
test_repomap.py | ||
test_wholefile.py | ||
utils.py |