feat/improvements #1
@ -44,7 +44,7 @@ def test_init_with_year_month_day() -> None:
|
|||||||
hour=15,
|
hour=15,
|
||||||
minute=45,
|
minute=45,
|
||||||
dow="Saturday",
|
dow="Saturday",
|
||||||
repetition="Weekly",
|
repetition=".+1d",
|
||||||
kenkeiras marked this conversation as resolved
Outdated
|
|||||||
)
|
)
|
||||||
|
|
||||||
assert ts.active is True
|
assert ts.active is True
|
||||||
@ -54,7 +54,7 @@ def test_init_with_year_month_day() -> None:
|
|||||||
assert ts.hour == 15
|
assert ts.hour == 15
|
||||||
assert ts.minute == 45
|
assert ts.minute == 45
|
||||||
assert ts.dow == "Saturday"
|
assert ts.dow == "Saturday"
|
||||||
assert ts.repetition == "Weekly"
|
assert ts.repetition == ".+1d"
|
||||||
|
|
||||||
|
|
||||||
def test_init_without_required_arguments() -> None:
|
def test_init_without_required_arguments() -> None:
|
||||||
|
Loading…
Reference in New Issue
Block a user
In practice, the repetition patterns are the ones for Org-mode, which you can see as part of
BASE_TIME_STAMP_RE
.They generally match the regexp:
(?P<repetition> (?P<rep_mark>(\+|\+\+|\.\+|-|--))(?P<rep_value>\d+)(?P<rep_unit>[hdwmy]))
For example:
+1d
,++1w
or+.1m
See: https://orgmode.org/manual/Repeated-tasks.html
Fixed at
191bb75