From 8679c425e01adf90276431f7c053739d1be7b302 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 21 Mar 2025 11:04:58 -0700 Subject: [PATCH] style: Remove trailing whitespace in test_main.py --- tests/basic/test_main.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/basic/test_main.py b/tests/basic/test_main.py index 10861abfa..e7602deb0 100644 --- a/tests/basic/test_main.py +++ b/tests/basic/test_main.py @@ -927,24 +927,23 @@ class TestMain(TestCase): repo = git.Repo(git_dir) # Re-open repo to ensure we get fresh config self.assertEqual(repo.git.config("user.name"), "Directive User") self.assertEqual(repo.git.config("user.email"), "directive@example.com") - + def test_resolve_aiderignore_path(self): # Import the function directly to test it from aider.args import resolve_aiderignore_path - + # Test with absolute path abs_path = os.path.abspath("/tmp/test/.aiderignore") self.assertEqual(resolve_aiderignore_path(abs_path), abs_path) - + # Test with relative path and git root git_root = "/path/to/git/root" rel_path = ".aiderignore" expected = os.path.join(git_root, rel_path) self.assertEqual( - resolve_aiderignore_path(rel_path, git_root), - str(Path(git_root) / rel_path) + resolve_aiderignore_path(rel_path, git_root), str(Path(git_root) / rel_path) ) - + # Test with relative path and no git root rel_path = ".aiderignore" self.assertEqual(resolve_aiderignore_path(rel_path), rel_path)