MCPcopy
hub / github.com/celery/celery / test_is_not_aborted

Method test_is_not_aborted

t/unit/contrib/test_abortable.py:18–25  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

16 self.abortable.AsyncResult(tid), AbortableAsyncResult)
17
18 def test_is_not_aborted(self):
19 self.abortable.push_request()
20 try:
21 result = self.abortable.apply_async()
22 tid = result.id
23 assert not self.abortable.is_aborted(task_id=tid)
24 finally:
25 self.abortable.pop_request()
26
27 def test_is_aborted_not_abort_result(self):
28 self.abortable.AsyncResult = self.app.AsyncResult

Callers

nothing calls this directly

Calls 4

push_requestMethod · 0.80
pop_requestMethod · 0.80
apply_asyncMethod · 0.45
is_abortedMethod · 0.45

Tested by

no test coverage detected