MCPcopy
hub / github.com/celery/celery / test_from_dict_with_body

Method test_from_dict_with_body

t/unit/tasks/test_canvas.py:1614–1618  ·  view source on GitHub ↗
(self, chord_type)

Source from the content-addressed store, hash-verified

1612
1613 @pytest.mark.parametrize("chord_type", [chord, chord_subclass])
1614 def test_from_dict_with_body(self, chord_type):
1615 header = body = self.add.s(1, 2)
1616 original_chord = chord_type(header=header, body=body)
1617 rebuilt_chord = chord_type.from_dict(dict(original_chord))
1618 assert isinstance(rebuilt_chord, chord_type)
1619
1620 def test_from_dict_deep_deserialize(self, subtests):
1621 header = body = self.add.s(1, 2)

Callers

nothing calls this directly

Calls 2

sMethod · 0.45
from_dictMethod · 0.45

Tested by

no test coverage detected