Exemplo n.º 1
0
 def test_groc_config(self, mock_parse_groc):
     schedule = 'every Mon,Wed at 12:00'
     context = config_utils.NullConfigContext
     config = schedule_parse.schedule_config_from_string(schedule, context)
     assert_equal(config, mock_parse_groc.return_value)
     generic_config = schedule_parse.ConfigGenericSchedule(
         'groc daily', schedule, None)
     mock_parse_groc.assert_called_with(generic_config, context)
Exemplo n.º 2
0
 def test_constant_config(self):
     schedule = 'constant'
     context = config_utils.NullConfigContext
     config = schedule_parse.schedule_config_from_string(schedule, context)
     assert_equal(config, schedule_parse.ConfigConstantScheduler())
Exemplo n.º 3
0
 def test_constant_config(self):
     schedule = 'constant'
     context = config_utils.NullConfigContext
     config = schedule_parse.schedule_config_from_string(schedule, context)
     assert_equal(config, schedule_parse.ConfigConstantScheduler())