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

Method test_current_tasks

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

Source from the content-addressed store, hash-verified

1119 assert self.conn.get("task_id") == task.id
1120
1121 def test_current_tasks(self):
1122 task1 = Task(self.tiger, verify_current_tasks)
1123 task1.delay()
1124 task2 = Task(self.tiger, verify_current_tasks)
1125 task2.delay()
1126 Worker(self.tiger).run(once=True)
1127 assert self.conn.lrange("task_ids", 0, -1) == [task1.id, task2.id]
1128
1129 def test_current_task_eager(self):
1130 self.tiger.config["ALWAYS_EAGER"] = True

Callers

nothing calls this directly

Calls 4

delayMethod · 0.95
TaskClass · 0.90
WorkerClass · 0.90
runMethod · 0.45

Tested by

no test coverage detected