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

Function _make_file_event

tests/test_watcher.py:10–15  ·  view source on GitHub ↗

Create a mock watchdog file event.

(src_path: str, is_directory: bool = False)

Source from the content-addressed store, hash-verified

8
9
10def _make_file_event(src_path: str, is_directory: bool = False):
11 """Create a mock watchdog file event."""
12 event = MagicMock()
13 event.src_path = src_path
14 event.is_directory = is_directory
15 return event
16
17
18class TestDebouncedHandler:

Calls

no outgoing calls

Tested by

no test coverage detected