def test_create_job_defaults_config_no_config(self): config = SchedulerConfiguration() self.assertIsNotNone(config) data = {} config._create_job_defaults_config(data) self.assertEquals(data['apscheduler.job_defaults'], {})
def test_create_job_defaults_config(self): config = SchedulerConfiguration() self.assertIsNotNone(config) config._job_defaults = SchedulerJobDefaultsConfiguration() config._job_defaults._coalesce = 1 config._job_defaults._max_instances = 3 data = {} config._create_job_defaults_config(data) self.assertEquals(data['apscheduler.job_defaults'], {'coalesce': '1', 'max_instances': '3'})