MCPcopy
hub / github.com/celery/celery / test_add

Method test_add

t/unit/tasks/test_result.py:565–570  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

563 x.join.assert_called()
564
565 def test_add(self):
566 x = self.app.ResultSet([self.app.AsyncResult(1)])
567 x.add(self.app.AsyncResult(2))
568 assert len(x) == 2
569 x.add(self.app.AsyncResult(2))
570 assert len(x) == 2
571
572 @contextmanager
573 def dummy_copy(self):

Callers

nothing calls this directly

Calls 3

addMethod · 0.95
ResultSetMethod · 0.80
AsyncResultMethod · 0.45

Tested by

no test coverage detected