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

Method test_forget

t/unit/backends/test_database.py:882–889  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

880 assert tb.get_task_meta(tid, cache=False)['result'] == 43
881
882 def test_forget(self):
883 tb = DatabaseBackend(self.uri, backend='memory://', app=self.app)
884 tid = uuid()
885 tb.mark_as_done(tid, {'foo': 'bar'})
886 tb.mark_as_done(tid, {'foo': 'bar'})
887 x = self.app.AsyncResult(tid, backend=tb)
888 x.forget()
889 assert x.result is None
890
891 def test_process_cleanup(self):
892 tb = DatabaseBackend(self.uri, app=self.app)

Callers

nothing calls this directly

Calls 4

forgetMethod · 0.95
DatabaseBackendClass · 0.90
mark_as_doneMethod · 0.80
AsyncResultMethod · 0.45

Tested by

no test coverage detected