Beispiel #1
0
 def test_auto_runner(self):
     runner = Runner()
     runner.queue_op(FakeOp())
     runner.queue_op(FakeOp())
     results = list(runner.iter_results())
     self.assertEqual(results, [1, 1])
     self.assertFalse(runner.started)
Beispiel #2
0
 def test_auto_runner(self):
     runner = Runner()
     runner.queue_op(FakeOp())
     runner.queue_op(FakeOp())
     results = list(runner.iter_results())
     self.assertEqual(results, [1, 1])
     self.assertFalse(runner.started)
Beispiel #3
0
 def test_runner(self):
     runner = Runner()
     runner.queue_op(FakeOp())
     runner.queue_op(FakeOp())
     runner.queue_op(FakeBadOp())
     runner.start(2)
     results = list(runner.iter_results())
     self.assertEqual(len(results), 2)
     runner.stop()
Beispiel #4
0
 def test_runner(self):
     runner = Runner()
     runner.queue_op(FakeOp())
     runner.queue_op(FakeOp())
     runner.queue_op(FakeBadOp())
     runner.start(2)
     results = list(runner.iter_results())
     self.assertEqual(len(results), 2)
     runner.stop()