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

Method test_replace_group

t/unit/tasks/test_tasks.py:1459–1467  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1457 mock_chord_link_error.assert_called_once_with(errbacks)
1458
1459 def test_replace_group(self):
1460 c = group([self.mytask.s()], app=self.app)
1461 c.freeze = Mock(name='freeze')
1462 c.delay = Mock(name='delay')
1463 self.mytask.request.id = 'id'
1464 self.mytask.request.group = 'group'
1465 self.mytask.request.root_id = 'root_id',
1466 with pytest.raises(Ignore):
1467 self.mytask.replace(c)
1468
1469 def test_replace_chain(self):
1470 c = chain([self.mytask.si(), self.mytask.si()], app=self.app)

Callers

nothing calls this directly

Calls 4

groupClass · 0.90
raisesMethod · 0.80
sMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected