MCPcopy
hub / github.com/celery/celery / test_clone_clones_body

Method test_clone_clones_body

t/unit/tasks/test_canvas.py:1308–1314  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1306 assert isinstance(signature(dict(x)), chord_type)
1307
1308 def test_clone_clones_body(self):
1309 x = chord([self.add.s(2, 2), self.add.s(4, 4)], body=self.mul.s(4))
1310 y = x.clone()
1311 assert x.kwargs['body'] is not y.kwargs['body']
1312 y.kwargs.pop('body')
1313 z = y.clone()
1314 assert z.kwargs.get('body') is None
1315
1316 def test_argument_is_group(self):
1317 x = chord(group(self.add.s(2, 2), self.add.s(4, 4), app=self.app))

Callers

nothing calls this directly

Calls 5

chordFunction · 0.85
sMethod · 0.45
cloneMethod · 0.45
popMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected