MCPcopy
hub / github.com/bugy/script-server / _test_single_update

Method _test_single_update

src/tests/observable_test.py:21–28  ·  view source on GitHub ↗
(self, source, observable)

Source from the content-addressed store, hash-verified

19 self._test_no_updates(observable)
20
21 def _test_single_update(self, source, observable):
22 observer = _StoringObserver()
23 observable.subscribe(observer)
24
25 message = 'test notification'
26 source.push(message)
27
28 return observer, message
29
30 def test_single_update(self):
31 observable = self.create_observable()

Calls 3

_StoringObserverClass · 0.90
subscribeMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected