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

Method test_mark_as_done

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

Source from the content-addressed store, hash-verified

534 assert tb.task_result_exists(tid) is True
535
536 def test_mark_as_done(self):
537 tb = DatabaseBackend(self.uri, app=self.app)
538
539 tid = uuid()
540
541 assert tb.get_state(tid) == states.PENDING
542 assert tb.get_result(tid) is None
543
544 tb.mark_as_done(tid, 42)
545 assert tb.get_state(tid) == states.SUCCESS
546 assert tb.get_result(tid) == 42
547
548 def test_is_pickled(self):
549 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