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

Method test_apply_chord

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

Source from the content-addressed store, hash-verified

71 assert isinstance(self.tb.get_result(self.tid), KeyError)
72
73 def test_apply_chord(self):
74 tb = CacheBackend(backend='memory://', app=self.app)
75 result_args = (
76 uuid(),
77 [self.app.AsyncResult(uuid()) for _ in range(3)],
78 )
79 tb.apply_chord(result_args, None)
80 assert self.app.GroupResult.restore(result_args[0], backend=tb) == self.app.GroupResult(*result_args)
81
82 @patch('celery.result.GroupResult.restore')
83 def test_on_chord_part_return(self, restore):

Callers

nothing calls this directly

Calls 5

CacheBackendClass · 0.90
GroupResultMethod · 0.80
AsyncResultMethod · 0.45
apply_chordMethod · 0.45
restoreMethod · 0.45

Tested by

no test coverage detected