| 1 | """We want to check that even if the span falls into a day long event, the event is found. |
| 2 | |
| 3 | RFC 5545: |
| 4 | |
| 5 | For cases where a "VEVENT" calendar component |
| 6 | specifies a "DTSTART" property with a DATE value type but no |
| 7 | "DTEND" nor "DURATION" property, the event's duration is taken to |
| 8 | be one day. |
| 9 | """ |
| 10 | |
| 11 | import pytest |
| 12 | |
| 13 | |
| 14 | @pytest.mark.parametrize( |
| 15 | "dt", |
| 16 | [ |
| 17 | (1997, 11, 2, 0), |
| 18 | (1997, 11, 2, 1), |
| 19 | ], |
| 20 | ) |
| 21 | def test_event_occurs(calendars, dt): |
| 22 | """The event should occur.""" |
| 23 | events = calendars.issue_179_example.at(dt) |
| 24 | assert len(events) == 1 |