MCPcopy
hub / github.com/Aider-AI/aider / test_handle_changes

Function test_handle_changes

tests/basic/test_watch.py:99–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97
98
99def 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
115def test_ai_comment_pattern():

Callers

nothing calls this directly

Calls 4

handle_changesMethod · 0.95
InputOutputClass · 0.90
FileWatcherClass · 0.90
MinimalCoderClass · 0.85

Tested by

no test coverage detected