Coverage for scheduler/message.py: 100%
11 statements
« prev ^ index » next coverage.py v7.0.4, created at 2023-12-10 21:31 +0000
« prev ^ index » next coverage.py v7.0.4, created at 2023-12-10 21:31 +0000
1"""
2Information and error messages.
4Author: Jendrik A. Potyka, Fabian A. Preiss
5"""
7DUPLICATE_EFFECTIVE_TIME = "Times that are effectively identical are not allowed."
9CYCLIC_TYPE_ERROR_MSG = "Wrong input for Cyclic! Expected input type:\n" + "datetime.timedelta"
10_DAILY_TYPE_ERROR_MSG = (
11 "Wrong input for {0}! Select one of the following input types:\n"
12 + "datetime.time | list[datetime.time]"
13)
14MINUTELY_TYPE_ERROR_MSG = _DAILY_TYPE_ERROR_MSG.format("Minutely")
15HOURLY_TYPE_ERROR_MSG = _DAILY_TYPE_ERROR_MSG.format("Hourly")
16DAILY_TYPE_ERROR_MSG = _DAILY_TYPE_ERROR_MSG.format("Daily")
17WEEKLY_TYPE_ERROR_MSG = (
18 "Wrong input for Weekly! Select one of the following input types:\n"
19 + "DAY | list[DAY]\n"
20 + "where `DAY = Weekday`"
21)
23TZ_ERROR_MSG = "Can't use offset-naive and offset-aware datetimes together."
24_TZ_ERROR_MSG = TZ_ERROR_MSG[:-1] + " for {0}."
26START_STOP_ERROR = "Start argument must be smaller than the stop argument."
28ONCE_TYPE_ERROR_MSG = (
29 "Wrong input for Once! Select one of the following input types:\n"
30 + "dt.datetime | dt.timedelta | Weekday | dt.time"
31)