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

Method test_current_task

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

Source from the content-addressed store, hash-verified

1112 """
1113
1114 def test_current_task(self):
1115 task = Task(self.tiger, verify_current_task)
1116 task.delay()
1117 Worker(self.tiger).run(once=True)
1118 assert not self.conn.exists("runtime_error")
1119 assert self.conn.get("task_id") == task.id
1120
1121 def test_current_tasks(self):
1122 task1 = Task(self.tiger, verify_current_tasks)

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