mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
fix: Remove unused variable and fix f-string in test_git_config_include_directive
This commit is contained in:
parent
1b58e95dce
commit
d70995bb1a
1 changed files with 1 additions and 2 deletions
|
@ -790,7 +790,6 @@ class TestMain(TestCase):
|
|||
|
||||
# Set up main git config with include directive
|
||||
git_config = git_dir / ".git" / "config"
|
||||
original_config_content = git_config.read_text()
|
||||
with open(git_config, "a") as f:
|
||||
f.write(f"\n[include]\n path = {include_config}\n")
|
||||
|
||||
|
@ -798,7 +797,7 @@ class TestMain(TestCase):
|
|||
modified_config_content = git_config.read_text()
|
||||
|
||||
# Verify the include directive was added correctly
|
||||
self.assertIn(f"[include]", modified_config_content)
|
||||
self.assertIn("[include]", modified_config_content)
|
||||
self.assertIn(f"path = {include_config}", modified_config_content)
|
||||
|
||||
# Verify the config is set up correctly using git command
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue