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')
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')
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())
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)
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())