(incoming_schedule_config)
| 14 | return datetime_value |
| 15 | |
| 16 | def _read_repeat_unit(incoming_schedule_config): |
| 17 | repeat_unit = incoming_schedule_config.get('repeat_unit') |
| 18 | if is_blank(repeat_unit): |
| 19 | raise InvalidScheduleException('repeat_unit is required for repeatable schedule') |
| 20 | |
| 21 | if repeat_unit.lower() not in ['minutes', 'hours', 'days', 'weeks', 'months']: |
| 22 | raise InvalidScheduleException('repeat_unit should be one of: minutes, hours, days, weeks, months') |
| 23 | |
| 24 | return repeat_unit.lower() |
| 25 | |
| 26 | |
| 27 | def _read_repeat_period(incoming_schedule_config): |
no test coverage detected