mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-30 08:32:07 -04:00
test: localize calendar recurrence helper import (#4944)
* test: localize calendar recurrence helper import * test: share calendar route import helper
This commit is contained in:
committed by
GitHub
parent
927b1f7ecf
commit
bad9ec2f9c
@@ -24,7 +24,7 @@ UNTIL must expand to all of its occurrences.
|
||||
from datetime import datetime
|
||||
from types import SimpleNamespace
|
||||
|
||||
from tests.test_null_owner_gates import _import_calendar_helpers
|
||||
from tests.helpers.calendar_routes import import_calendar_routes
|
||||
|
||||
|
||||
_MOCK_CAL = SimpleNamespace(name="Personal", color="#5b8abf")
|
||||
@@ -55,7 +55,7 @@ def _make_event(**overrides):
|
||||
def test_expand_rrule_with_utc_until_keeps_all_occurrences():
|
||||
"""FREQ=DAILY;UNTIL=...Z must expand to every occurrence, not collapse
|
||||
to a single non-recurring event."""
|
||||
cal = _import_calendar_helpers()
|
||||
cal = import_calendar_routes()
|
||||
ev = _make_event(rrule="FREQ=DAILY;UNTIL=20240105T090000Z")
|
||||
|
||||
results = cal._expand_rrule(ev, datetime(2024, 1, 1), datetime(2024, 1, 10))
|
||||
|
||||
Reference in New Issue
Block a user