test: Fix gitignore pattern matching and add ai comment test

This commit is contained in:
Paul Gauthier (aider) 2024-12-11 20:43:07 -08:00
parent ad59c4cbf3
commit c3f85c3bb2

View file

@ -7,6 +7,7 @@ from aider.watch import FileWatcher
def test_gitignore_patterns():
"""Test that gitignore patterns are properly loaded and matched"""
from pathlib import Path
from aider.watch import load_gitignores
# Create a temporary gitignore file with test patterns
@ -59,6 +60,7 @@ def test_gitignore_patterns():
# Cleanup
tmp_gitignore.unlink()
def test_ai_comment_pattern():
# Create minimal IO and Coder instances for testing
class MinimalCoder: