MCPcopy
hub / github.com/celery/celery / test_from_dict

Method test_from_dict

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

Source from the content-addressed store, hash-verified

1605
1606 @pytest.mark.parametrize("chord_type", [chord, chord_subclass])
1607 def test_from_dict(self, chord_type):
1608 header = self.add.s(1, 2)
1609 original_chord = chord_type(header=header)
1610 rebuilt_chord = chord_type.from_dict(dict(original_chord))
1611 assert isinstance(rebuilt_chord, chord_type)
1612
1613 @pytest.mark.parametrize("chord_type", [chord, chord_subclass])
1614 def test_from_dict_with_body(self, chord_type):

Callers

nothing calls this directly

Calls 2

sMethod · 0.45
from_dictMethod · 0.45

Tested by

no test coverage detected