Пример #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()
Пример #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()
Пример #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()
Пример #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()
Пример #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()
Пример #6
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()