def test_create_processpool_config_no_config(self): config = SchedulerConfiguration() self.assertIsNotNone(config) data = {} config._create_processpool_config(data) self.assertEquals(data['apscheduler.executors.processpool'], {'type': 'processpool'})
def test_create_processpool_config(self): config = SchedulerConfiguration() self.assertIsNotNone(config) config._processpool = SchedulerProcessPoolConfiguration() config._processpool._max_workers = 3 data = {} config._create_processpool_config(data) self.assertEquals(data['apscheduler.executors.processpool'], {'max_workers': '3', 'type': 'processpool'})