Commit 557ff910 authored by Philippe Pepiot's avatar Philippe Pepiot
Browse files

Explain magic number 3 in test_multi_revoke() assertion

parent 866393e59934
......@@ -253,6 +253,7 @@ class CeleryTaskTC(BaseCeleryTaskTC):
task = start_async_task(cnx, celery.group(success(), success()))
cnx.commit()
task_ids = set([t.task_id for t in task.child_tasks()])
# we have a task group containing two subtasks = 3 tasks
self.assertEqual(len(task_ids), 3)
with mock.patch('celery.app.control.Control.revoke') as revoke:
task.cw_adapt_to('ICeleryTask').revoke()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment