Parcourir la source

Fix a test using the deprecated carrot Consumer.decoder

Ask Solem il y a 15 ans
Parent
commit
19a2a5a527
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      celery/tests/test_task.py

+ 1 - 1
celery/tests/test_task.py

@@ -279,7 +279,7 @@ class TestTaskSet(unittest.TestCase):
         subtasks = taskset_res.subtasks
         taskset_id = taskset_res.taskset_id
         for subtask in subtasks:
-            m = consumer.decoder(consumer.fetch().body)
+            m = consumer.fetch().payload
             self.assertEquals(m.get("taskset"), taskset_id)
             self.assertEquals(m.get("task"), IncrementCounterTask.name)
             self.assertEquals(m.get("id"), subtask.task_id)