MCPcopy
hub / github.com/celery/celery / test_mark_as_done

Method test_mark_as_done

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

Source from the content-addressed store, hash-verified

291 assert meta['traceback'] is None
292
293 def test_mark_as_done(self):
294 tb = DatabaseBackend(self.uri, app=self.app)
295
296 tid = uuid()
297
298 assert tb.get_state(tid) == states.PENDING
299 assert tb.get_result(tid) is None
300
301 tb.mark_as_done(tid, 42)
302 assert tb.get_state(tid) == states.SUCCESS
303 assert tb.get_result(tid) == 42
304
305 def test_is_pickled(self):
306 tb = DatabaseBackend(self.uri, app=self.app)

Callers

nothing calls this directly

Calls 4

DatabaseBackendClass · 0.90
get_stateMethod · 0.80
get_resultMethod · 0.80
mark_as_doneMethod · 0.80

Tested by

no test coverage detected