(self)
| 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()) |
nothing calls this directly
no test coverage detected