MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / FakeObserver

Class FakeObserver

tests/test_watch_pruned.py:34–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 pass
33
34 class FakeObserver:
35 def schedule(self, handler, path, *, recursive=False, event_filter=None):
36 calls.append((Path(path).resolve(), recursive))
37
38 def start(self):
39 raise StopWatch
40
41 fake = FakeObserver()
42 monkeypatch.setattr(observers, "Observer", lambda: fake)

Calls

no outgoing calls