예제 #1
0
 def test_workers_zero_setting(self, launch, setup, parse_args):
     self.override_config("engine_workers", 0, "engine")
     engine.main()
     launch.assert_called_once_with(mock.ANY,
                                    mock.ANY,
                                    workers=processutils.get_worker_count(),
                                    restart_method='mutate')
예제 #2
0
 def test_workers_good_setting(self, launch, setup, parse_args):
     self.override_config("engine_workers", 8, "engine")
     engine.main()
     launch.assert_called_once_with(mock.ANY,
                                    mock.ANY,
                                    workers=8,
                                    restart_method='mutate')
예제 #3
0
 def test_workers_zero_setting(self, launch, setup, parse_args):
     self.override_config("workers", 0, "engine")
     engine.main()
     launch.assert_called_once_with(mock.ANY, mock.ANY,
                                    workers=processutils.get_worker_count())
예제 #4
0
 def test_workers_good_setting(self, launch, setup, parse_args):
     self.override_config("workers", 8, "engine")
     engine.main()
     launch.assert_called_once_with(mock.ANY, mock.ANY, workers=8)
예제 #5
0
 def test_workers_default(self, launch, setup, parse_args):
     engine.main()
     launch.assert_called_once_with(mock.ANY, mock.ANY,
                                    workers=processutils.get_worker_count())