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

Method test_delete_failed_task

tests/test_base.py:994–1002  ·  view source on GitHub ↗

Ensure we can delete a task that's in the error queue.

(self)

Source from the content-addressed store, hash-verified

992 self._ensure_queues()
993
994 def test_delete_failed_task(self):
995 """
996 Ensure we can delete a task that's in the error queue.
997 """
998 task = self.tiger.delay(exception_task)
999 Worker(self.tiger).run(once=True)
1000 self._ensure_queues(error={"default": 1})
1001 task.delete()
1002 self._ensure_queues()
1003
1004 def test_cancel_failed_task_2(self):
1005 """

Callers

nothing calls this directly

Calls 4

WorkerClass · 0.90
deleteMethod · 0.80
delayMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected