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

Method test_mark_as_done

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

Source from the content-addressed store, hash-verified

46 assert self.tb.client.get('test') == 12345
47
48 def test_mark_as_done(self):
49 assert self.tb.get_state(self.tid) == states.PENDING
50 assert self.tb.get_result(self.tid) is None
51
52 self.tb.mark_as_done(self.tid, 42)
53 assert self.tb.get_state(self.tid) == states.SUCCESS
54 assert self.tb.get_result(self.tid) == 42
55
56 def test_is_pickled(self):
57 result = {'foo': 'baz', 'bar': SomeClass(12345)}

Callers

nothing calls this directly

Calls 3

get_stateMethod · 0.80
get_resultMethod · 0.80
mark_as_doneMethod · 0.80

Tested by

no test coverage detected