-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
BEGIN:VCALENDAR | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
VERSION:2.0 | ||
PRODID:-//Example Corp.//CalDAV Client//EN | ||
BEGIN:VJOURNAL | ||
UID:19920901T130000Z-123409@host.com | ||
DTSTAMP:19920901T130000Z | ||
DTSTART:19920420 | ||
SUMMARY:Yearly Income Tax Report | ||
DESCRIPTION:We made it this year too. Probably. What's the point of a recurring journal entry? Journals are supposed to describe past events, aren't they? | ||
RRULE:FREQ=YEARLY | ||
CLASS:CONFIDENTIAL | ||
CATEGORIES:FAMILY,FINANCE | ||
PRIORITY:1 | ||
END:VJOURNAL | ||
END:VCALENDAR |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
BEGIN:VCALENDAR | ||
VERSION:2.0 | ||
PRODID:-//Example Corp.//CalDAV Client//EN | ||
BEGIN:VTODO | ||
UID:19920901T130000Z-123408@host.com | ||
DTSTAMP:19920901T130000Z | ||
DTSTART:19920415T133000Z | ||
DUE:19920516T045959Z | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
tobixen
Author
Owner
|
||
SUMMARY:Yearly Income Tax Preparation | ||
RRULE:FREQ=YEARLY | ||
CLASS:CONFIDENTIAL | ||
CATEGORIES:FAMILY,FINANCE | ||
PRIORITY:1 | ||
END:VTODO | ||
END:VCALENDAR |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import pytest | ||
This comment has been minimized.
Sorry, something went wrong.
niccokunzmann
|
||
from recurring_ical_events import DATE_MAX | ||
|
||
|
||
def test_recurring_task_is_not_included1(calendars): | ||
tasks = calendars.simple_todo.between((1989, 1, 1), (1991,1,1)) | ||
assert not tasks | ||
|
||
def test_recurring_task_is_not_included2(calendars): | ||
tasks = calendars.simple_todo.between((1998, 1, 1), (1998,4,14)) | ||
assert not tasks | ||
|
||
def test_recurring_task_is_repeated(calendars): | ||
events = calendars.simple_todo.between((1995, 1, 1), (2022,1,1)) | ||
assert len(events) == 7 | ||
|
||
## Hmm ... I hate copying code, there is most likely some smart way to reuse | ||
This comment has been minimized.
Sorry, something went wrong.
niccokunzmann
|
||
## the code above, but whatever ... | ||
def test_recurring_journal_is_not_included1(calendars): | ||
tasks = calendars.simple_journal.between((1989, 1, 1), (1991,1,1)) | ||
assert not tasks | ||
|
||
def test_recurring_journal_is_not_included2(calendars): | ||
tasks = calendars.simple_journal.between((1998, 1, 1), (1998,4,14)) | ||
assert not tasks | ||
|
||
def test_recurring_journal_is_repeated(calendars): | ||
This comment has been minimized.
Sorry, something went wrong. |
||
events = calendars.simple_journal.between((1995, 1, 1), (2022,1,1)) | ||
assert len(events) == 7 | ||
|
||
|
I would appreciate it if the files all start with issue_97