Explorar o código

Fix the taskset set.

Ask Solem %!s(int64=16) %!d(string=hai) anos
pai
achega
0f33f97dee
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      celery/tests/test_task.py

+ 3 - 1
celery/tests/test_task.py

@@ -121,7 +121,9 @@ class TestTaskSet(unittest.TestCase):
         self.assertEquals(ts.task_name, IncrementCounterTask.name)
         self.assertEquals(ts.total, 9)
 
-        taskset_id, subtask_ids = ts.run()
+        taskset_res = ts.run()
+        subtask_ids = taskset_res.subtask_ids
+        taskset_id = taskset_res.taskset_id
 
         consumer = IncrementCounterTask().get_consumer()
         for subtask_id in subtask_ids: