mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 01:04:59 +00:00
chdir inside test
This commit is contained in:
parent
43103978b5
commit
e107819085
1 changed files with 3 additions and 0 deletions
|
@ -34,6 +34,9 @@ class TestMain(TestCase):
|
|||
self.assertTrue(os.path.exists("foo.txt"))
|
||||
|
||||
def test_main_with_empty_git_dir_new_file(self):
|
||||
tempdir = tempfile.mkdtemp()
|
||||
os.chdir(tempdir)
|
||||
|
||||
subprocess.run(["git", "init"])
|
||||
subprocess.run(["git", "config", "user.email", "dummy@example.com"])
|
||||
subprocess.run(["git", "config", "user.name", "Dummy User"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue