Browse Source

Set task test chord to a more realistic value

Dan McGee 13 years ago
parent
commit
6a9f744a7b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      celery/tests/test_task/__init__.py

+ 1 - 1
celery/tests/test_task/__init__.py

@@ -344,7 +344,7 @@ class TestCeleryTasks(unittest.TestCase):
     def test_after_return(self):
         task = self.createTaskCls("T1", "c.unittest.t.after_return")()
         task.backend = Mock()
-        task.request.chord = {}
+        task.request.chord = return_True_task.subtask()
         task.after_return("SUCCESS", 1.0, "foobar", (), {}, None)
         task.backend.on_chord_part_return.assert_called_with(task)
         task.request.clear()