MCPcopy Create free account
hub / github.com/closeio/tasktiger / test_delay

Method test_delay

tests/test_base.py:941–948  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

939 """
940
941 def test_delay(self):
942 task = Task(self.tiger, simple_task)
943 self._ensure_queues()
944 task.delay()
945 self._ensure_queues(queued={"default": 1})
946
947 # Canceling only works for scheduled tasks.
948 pytest.raises(TaskNotFound, task.cancel)
949
950 def test_delay_scheduled(self):
951 task = Task(self.tiger, simple_task, queue="a")

Callers

nothing calls this directly

Calls 2

delayMethod · 0.95
TaskClass · 0.90

Tested by

no test coverage detected