feat/improvements #1

Merged
kenkeiras merged 10 commits from lyz/org-rw:feat/improvements into develop 2024-07-29 14:17:18 +00:00
Showing only changes of commit 191bb753c4 - Show all commits

View File

@ -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

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

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
Outdated
Review

Fixed at 191bb75

Fixed at 191bb75
) )
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: