MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / test_collects_modified_files

Method test_collects_modified_files

tests/test_watcher.py:33–42  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

31 assert "/raw/notes.md" in handler._pending
32
33 def test_collects_modified_files(self):
34 callback = MagicMock()
35 handler = DebouncedHandler(callback, debounce_seconds=100)
36
37 handler.on_modified(_make_file_event("/raw/paper.txt"))
38
39 if handler._timer:
40 handler._timer.cancel()
41
42 assert "/raw/paper.txt" in handler._pending
43
44 def test_ignores_directories(self):
45 callback = MagicMock()

Callers

nothing calls this directly

Calls 3

on_modifiedMethod · 0.95
DebouncedHandlerClass · 0.90
_make_file_eventFunction · 0.85

Tested by

no test coverage detected