MCPcopy
hub / github.com/celery/celery / test_groupresult_serialization

Method test_groupresult_serialization

t/integration/test_canvas.py:367–378  ·  view source on GitHub ↗

Test GroupResult is correctly serialized to save in the result backend

(self, manager)

Source from the content-addressed store, hash-verified

365
366 @flaky
367 def test_groupresult_serialization(self, manager):
368 """Test GroupResult is correctly serialized
369 to save in the result backend"""
370 try:
371 manager.app.backend.ensure_chords_allowed()
372 except NotImplementedError as e:
373 raise pytest.skip(e.args[0])
374
375 async_result = build_chain_inside_task.delay()
376 result = async_result.get()
377 assert len(result) == 2
378 assert isinstance(result[0][1], list)
379
380 @flaky
381 def test_chain_of_task_a_group_and_a_chord(self, manager):

Callers

nothing calls this directly

Calls 3

ensure_chords_allowedMethod · 0.45
delayMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected