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

Method test_ignores_directories

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

Source from the content-addressed store, hash-verified

42 assert "/raw/paper.txt" in handler._pending
43
44 def test_ignores_directories(self):
45 callback = MagicMock()
46 handler = DebouncedHandler(callback, debounce_seconds=100)
47
48 handler.on_created(_make_file_event("/raw/subdir", is_directory=True))
49
50 if handler._timer:
51 handler._timer.cancel()
52
53 assert len(handler._pending) == 0
54
55 def test_ignores_hidden_files(self):
56 callback = MagicMock()

Callers

nothing calls this directly

Calls 3

on_createdMethod · 0.95
DebouncedHandlerClass · 0.90
_make_file_eventFunction · 0.85

Tested by

no test coverage detected