MCPcopy
hub / github.com/celery/celery / test_callback

Method test_callback

t/unit/contrib/test_migrate.py:104–111  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

102 republish.assert_called()
103
104 def test_callback(self):
105 cb = Mock()
106 with self.move_context(callback=cb) as (callback, pred, republish):
107 pred.return_value = 'foo'
108 body, message = self.msgpair()
109 callback(body, message)
110 republish.assert_called()
111 cb.assert_called()
112
113
114class test_start_filter:

Callers

nothing calls this directly

Calls 3

move_contextMethod · 0.95
msgpairMethod · 0.95
callbackFunction · 0.85

Tested by

no test coverage detected