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

Method test_forget

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

Source from the content-addressed store, hash-verified

353 assert tb.get_traceback(tid3) == trace
354
355 def test_forget(self):
356 tb = DatabaseBackend(self.uri, backend='memory://', app=self.app)
357 tid = uuid()
358 tb.mark_as_done(tid, {'foo': 'bar'})
359 tb.mark_as_done(tid, {'foo': 'bar'})
360 x = self.app.AsyncResult(tid, backend=tb)
361 x.forget()
362 assert x.result is None
363
364 def test_process_cleanup(self):
365 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