mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
test: Fix gitignore pattern matching and add ai comment test
This commit is contained in:
parent
ad59c4cbf3
commit
c3f85c3bb2
1 changed files with 7 additions and 5 deletions
|
@ -7,6 +7,7 @@ from aider.watch import FileWatcher
|
||||||
def test_gitignore_patterns():
|
def test_gitignore_patterns():
|
||||||
"""Test that gitignore patterns are properly loaded and matched"""
|
"""Test that gitignore patterns are properly loaded and matched"""
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from aider.watch import load_gitignores
|
from aider.watch import load_gitignores
|
||||||
|
|
||||||
# Create a temporary gitignore file with test patterns
|
# Create a temporary gitignore file with test patterns
|
||||||
|
@ -59,6 +60,7 @@ def test_gitignore_patterns():
|
||||||
# Cleanup
|
# Cleanup
|
||||||
tmp_gitignore.unlink()
|
tmp_gitignore.unlink()
|
||||||
|
|
||||||
|
|
||||||
def test_ai_comment_pattern():
|
def test_ai_comment_pattern():
|
||||||
# Create minimal IO and Coder instances for testing
|
# Create minimal IO and Coder instances for testing
|
||||||
class MinimalCoder:
|
class MinimalCoder:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue