MCPcopy
hub / github.com/celery/celery / test_limit

Method test_limit

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

Source from the content-addressed store, hash-verified

94 republish.assert_called()
95
96 def test_limit(self):
97 with self.move_context(limit=1) as (callback, pred, republish):
98 pred.return_value = 'foo'
99 body, message = self.msgpair()
100 with pytest.raises(StopFiltering):
101 callback(body, message)
102 republish.assert_called()
103
104 def test_callback(self):
105 cb = Mock()

Callers

nothing calls this directly

Calls 4

move_contextMethod · 0.95
msgpairMethod · 0.95
callbackFunction · 0.85
raisesMethod · 0.45

Tested by

no test coverage detected