MCPcopy
hub / github.com/celery/celery / test_reduce

Method test_reduce

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

Source from the content-addressed store, hash-verified

157
158 @pytest.mark.usefixtures('depends_on_current_app')
159 def test_reduce(self):
160 x = Signature('TASK', (2, 4), app=self.app)
161 fun, args = x.__reduce__()
162 assert fun(*args) == x
163
164 def test_replace(self):
165 x = Signature('TASK', ('A',), {})

Callers

nothing calls this directly

Calls 3

__reduce__Method · 0.95
SignatureClass · 0.90
funFunction · 0.85

Tested by

no test coverage detected