MCPcopy
hub / github.com/celery/celery / test_eta_task

Method test_eta_task

t/unit/worker/test_strategy.py:247–251  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

245 assert not C.event_sent()
246
247 def test_eta_task(self):
248 with self._context(self.add.s(2, 2).set(countdown=10)) as C:
249 C()
250 assert C.was_scheduled()
251 C.consumer.qos.increment_eventually.assert_called_with()
252
253 def test_eta_task_utc_disabled(self):
254 with self._context(self.add.s(2, 2).set(countdown=10), utc=False) as C:

Callers

nothing calls this directly

Calls 5

_contextMethod · 0.95
was_scheduledMethod · 0.80
CClass · 0.70
setMethod · 0.45
sMethod · 0.45

Tested by

no test coverage detected