aider/tests
Paul Gauthier 108abe4a49 aider: Replace all subprocess.run(git calls that are making new repos and setting config with make_repo calls.
# 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.
2023-07-16 12:26:31 -03:00
..
__init__.py aider: Added empty __init__.py file to tests directory to fix ModuleNotFoundError when running tests. 2023-05-11 17:12:42 -07:00
test_coder.py Added GitTemporaryDirectory 2023-07-16 09:39:07 -03:00
test_commands.py updated tests 2023-07-11 15:15:56 -07:00
test_editblock.py updated tests 2023-07-11 15:17:00 -07:00
test_io.py Fix test 2023-07-10 15:33:46 -07:00
test_main.py aider: Replace all subprocess.run(git calls that are making new repos and setting config with make_repo calls. 2023-07-16 12:26:31 -03:00
test_models.py More Model test cases 2023-06-21 14:13:34 -07:00
test_repomap.py aider: Change the relative import to an absolute import for the IgnorantTemporaryDirectory class in test_repomap.py. 2023-07-16 09:05:18 -03:00
test_wholefile.py updated tests 2023-07-11 15:17:00 -07:00
utils.py refac make_repo 2023-07-16 12:25:18 -03:00