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

Method test_ignores_hidden_files

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

Source from the content-addressed store, hash-verified

53 assert len(handler._pending) == 0
54
55 def test_ignores_hidden_files(self):
56 callback = MagicMock()
57 handler = DebouncedHandler(callback, debounce_seconds=100)
58
59 handler.on_created(_make_file_event("/raw/.hidden_file"))
60 handler.on_created(_make_file_event("/raw/.DS_Store"))
61
62 if handler._timer:
63 handler._timer.cancel()
64
65 assert len(handler._pending) == 0
66
67 def test_flush_calls_callback_with_sorted_paths(self):
68 received = []

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