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

Method test_mark_as_done

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

Source from the content-addressed store, hash-verified

47 assert self.tb.client.get('test') == 12345
48
49 def test_mark_as_done(self):
50 assert self.tb.get_state(self.tid) == states.PENDING
51 assert self.tb.get_result(self.tid) is None
52
53 self.tb.mark_as_done(self.tid, 42)
54 assert self.tb.get_state(self.tid) == states.SUCCESS
55 assert self.tb.get_result(self.tid) == 42
56
57 def test_is_pickled(self):
58 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