mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +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():
|
||||
"""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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue