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

Method test_forget

t/unit/backends/test_cache.py:115–119  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

113 assert self.tb.mget(['foo', 'bar']) == {'foo': 1, 'bar': 2}
114
115 def test_forget(self):
116 self.tb.mark_as_done(self.tid, {'foo': 'bar'})
117 x = self.app.AsyncResult(self.tid, backend=self.tb)
118 x.forget()
119 assert x.result is None
120
121 def test_process_cleanup(self):
122 self.tb.process_cleanup()

Callers

nothing calls this directly

Calls 3

forgetMethod · 0.95
mark_as_doneMethod · 0.80
AsyncResultMethod · 0.45

Tested by

no test coverage detected