mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
style: fix linting issues in test_watch.py
This commit is contained in:
parent
154cb463e5
commit
6796d8f124
1 changed files with 4 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from aider.watch import FileWatcher
|
from aider.watch import FileWatcher
|
||||||
|
|
||||||
|
|
||||||
|
@ -16,5 +17,7 @@ def test_ai_comment_pattern():
|
||||||
# Test JavaScript fixture
|
# Test JavaScript fixture
|
||||||
js_path = fixtures_dir / "watch.js"
|
js_path = fixtures_dir / "watch.js"
|
||||||
js_lines, js_comments, js_has_bang = watcher.get_ai_comments(str(js_path))
|
js_lines, js_comments, js_has_bang = watcher.get_ai_comments(str(js_path))
|
||||||
assert len(js_lines) == 11, f"Expected 11 AI comments in JavaScript fixture, found {len(js_lines)}"
|
assert (
|
||||||
|
len(js_lines) == 11
|
||||||
|
), f"Expected 11 AI comments in JavaScript fixture, found {len(js_lines)}"
|
||||||
assert js_has_bang, "Expected at least one bang (!) comment in JavaScript fixture"
|
assert js_has_bang, "Expected at least one bang (!) comment in JavaScript fixture"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue