MCPcopy
hub / github.com/celery/celery / test_forget

Method test_forget

t/unit/tasks/test_result.py:88–96  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

86 self.mytask = mytask
87
88 def test_forget(self):
89 first = Mock()
90 second = self.app.AsyncResult(self.task1['id'], parent=first)
91 third = self.app.AsyncResult(self.task2['id'], parent=second)
92 last = self.app.AsyncResult(self.task3['id'], parent=third)
93 last.forget()
94 first.forget.assert_called_once()
95 assert last.result is None
96 assert second.result is None
97
98 def test_ignored_getter(self):
99 result = self.app.AsyncResult(uuid())

Callers

nothing calls this directly

Calls 2

forgetMethod · 0.95
AsyncResultMethod · 0.45

Tested by

no test coverage detected