MCPcopy
hub / github.com/celery/celery / test_replace

Method test_replace

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

Source from the content-addressed store, hash-verified

162 assert fun(*args) == x
163
164 def test_replace(self):
165 x = Signature('TASK', ('A',), {})
166 assert x.replace(args=('B',)).args == ('B',)
167 assert x.replace(kwargs={'FOO': 'BAR'}).kwargs == {
168 'FOO': 'BAR',
169 }
170 assert x.replace(options={'task_id': '123'}).options == {
171 'task_id': '123',
172 }
173
174 def test_set(self):
175 assert Signature('TASK', x=1).set(task_id='2').options == {

Callers

nothing calls this directly

Calls 2

replaceMethod · 0.95
SignatureClass · 0.90

Tested by

no test coverage detected