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

Method test_permanent_error

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

Source from the content-addressed store, hash-verified

1509 self._ensure_queues(error={"batch": 2})
1510
1511 def test_permanent_error(self):
1512 task = self.tiger.delay(exception_task, runner_class=MyErrorRunnerClass)
1513 Worker(self.tiger).run(once=True)
1514 assert self.conn.get("task_id") == task.id
1515 self.conn.delete("task_id")
1516 self._ensure_queues(error={"default": 1})
1517
1518 def test_eager_task(self):
1519 self.tiger.config["ALWAYS_EAGER"] = True

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