Exemple #1
0
 def test_after_return(self):
     task = self.createTaskCls("T1", "c.unittest.t.after_return")()
     task.backend = Mock()
     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()
Exemple #2
0
 def test_after_return(self):
     task = self.createTaskCls("T1", "c.unittest.t.after_return")()
     task.backend = Mock()
     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()
Exemple #3
0
 def test_after_return(self):
     task = self.createTask("c.unittest.t.after_return")
     task.request.chord = return_True_task.s()
     task.after_return("SUCCESS", 1.0, "foobar", (), {}, None)
     task.request.clear()
Exemple #4
0
 def test_after_return(self):
     task = self.createTask("c.unittest.t.after_return")
     task.request.chord = return_True_task.s()
     task.after_return("SUCCESS", 1.0, "foobar", (), {}, None)
     task.request.clear()
Exemple #5
0
 def test_after_return(self):
     task = self.createTask('c.unittest.t.after_return')
     task.request.chord = return_True_task.s()
     task.after_return('SUCCESS', 1.0, 'foobar', (), {}, None)
     task.request.clear()
 def test_after_return(self):
     task = self.createTask('c.unittest.t.after_return')
     task.request.chord = return_True_task.s()
     task.after_return('SUCCESS', 1.0, 'foobar', (), {}, None)
     task.request.clear()