Create a mock watchdog file event.
(src_path: str, is_directory: bool = False)
| 8 | |
| 9 | |
| 10 | def _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 | |
| 18 | class TestDebouncedHandler: |
no outgoing calls
no test coverage detected