Beispiel #1
0
    def test_interface_default_override_defaults(self):
        self.worker.add = Mock(side_effect=[True, True])
        self.worker.run = Mock(return_value=True)

        self.assertTrue(
            Interface.run([self.task_a, self.task_b],
                          self.worker_scheduler_factory))
Beispiel #2
0
 def _run_interface(self):
     return Interface.run([self.task_a, self.task_b], self.worker_scheduler_factory, {'no_lock': True})
Beispiel #3
0
    def test_interface_default_override_defaults(self):
        self.worker.add = Mock(side_effect=[True, True])
        self.worker.run = Mock(return_value=True)

        self.assertTrue(Interface.run([self.task_a, self.task_b], self.worker_scheduler_factory))
Beispiel #4
0
 def _run_interface(self):
     return Interface.run([self.task_a, self.task_b], self.worker_scheduler_factory)
Beispiel #5
0
 def _run_interface(self):
     return Interface.run([self.task_a, self.task_b],
                          self.worker_scheduler_factory)