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

Method test_simple_task

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

Source from the content-addressed store, hash-verified

87 assert task["kwargs"] == {"a": 3, "b": 4}
88
89 def test_simple_task(self):
90 self.tiger.delay(simple_task)
91 queues = self._ensure_queues(queued={"default": 1})
92 task = queues["queued"]["default"][0]
93 assert task["func"] == "tests.tasks:simple_task"
94
95 Worker(self.tiger).run(once=True)
96 self._ensure_queues(queued={"default": 0})
97 assert not self.conn.exists("t:task:%s" % task["id"])
98
99 @pytest.mark.skipif(sys.version_info < (3, 3), reason="__qualname__ unavailable")
100 def test_staticmethod_task(self):

Callers

nothing calls this directly

Calls 3

WorkerClass · 0.90
delayMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected