()
| 97 | |
| 98 | |
| 99 | def test_handle_changes(): |
| 100 | io = InputOutput(pretty=False, fancy_input=False, yes=False) |
| 101 | coder = MinimalCoder(io) |
| 102 | watcher = FileWatcher(coder) |
| 103 | |
| 104 | # Test no changes |
| 105 | assert not watcher.handle_changes([]) |
| 106 | assert len(watcher.changed_files) == 0 |
| 107 | |
| 108 | # Test with changes |
| 109 | changes = [("modified", "/path/to/file.py")] |
| 110 | assert watcher.handle_changes(changes) |
| 111 | assert len(watcher.changed_files) == 1 |
| 112 | assert str(Path("/path/to/file.py")) in watcher.changed_files |
| 113 | |
| 114 | |
| 115 | def test_ai_comment_pattern(): |
nothing calls this directly
no test coverage detected