MCPcopy Create free account
hub / github.com/celery/celery / test_forget

Method test_forget

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

Source from the content-addressed store, hash-verified

184 assert self.tb.mget(['foo', 'bar']) == {'foo': 1, 'bar': 2}
185
186 def test_forget(self):
187 self.tb.mark_as_done(self.tid, {'foo': 'bar'})
188 x = self.app.AsyncResult(self.tid, backend=self.tb)
189 x.forget()
190 assert x.result is None
191
192 def test_process_cleanup(self):
193 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