mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
disable test on windows
This commit is contained in:
parent
eaaac4d65d
commit
4e6a546efd
1 changed files with 6 additions and 6 deletions
|
@ -1,4 +1,5 @@
|
||||||
import os
|
import os
|
||||||
|
import platform
|
||||||
import tempfile
|
import tempfile
|
||||||
import unittest
|
import unittest
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
@ -138,9 +139,13 @@ class TestRepo(unittest.TestCase):
|
||||||
self.assertEqual(result, 'a good "commit message"')
|
self.assertEqual(result, 'a good "commit message"')
|
||||||
|
|
||||||
@patch("aider.repo.GitRepo.get_commit_message")
|
@patch("aider.repo.GitRepo.get_commit_message")
|
||||||
def notest_commit_with_custom_committer_name(self, mock_send):
|
def test_commit_with_custom_committer_name(self, mock_send):
|
||||||
mock_send.return_value = '"a good commit message"'
|
mock_send.return_value = '"a good commit message"'
|
||||||
|
|
||||||
|
# Cleanup of the git temp dir explodes on windows
|
||||||
|
if platform.system() == "Windows":
|
||||||
|
return
|
||||||
|
|
||||||
with GitTemporaryDirectory():
|
with GitTemporaryDirectory():
|
||||||
# new repo
|
# new repo
|
||||||
raw_repo = git.Repo()
|
raw_repo = git.Repo()
|
||||||
|
@ -179,11 +184,6 @@ class TestRepo(unittest.TestCase):
|
||||||
original_author_name = os.environ.get("GIT_AUTHOR_NAME")
|
original_author_name = os.environ.get("GIT_AUTHOR_NAME")
|
||||||
self.assertIsNone(original_author_name)
|
self.assertIsNone(original_author_name)
|
||||||
|
|
||||||
del fname
|
|
||||||
del git_repo
|
|
||||||
del raw_repo
|
|
||||||
del io
|
|
||||||
|
|
||||||
def test_get_tracked_files(self):
|
def test_get_tracked_files(self):
|
||||||
# Create a temporary directory
|
# Create a temporary directory
|
||||||
tempdir = Path(tempfile.mkdtemp())
|
tempdir = Path(tempfile.mkdtemp())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue