-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
import
corner case bugs, add test, update ChangeLog
- Loading branch information
Showing
5 changed files
with
85 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -277,6 +277,14 @@ def test_import(PatchedGCalI): | |
assert gcal.ImportICS(icsFile=open(vcal_path, errors='replace')) | ||
|
||
|
||
def test_legacy_import(PatchedGCalI): | ||
cal_names = parse_cal_names(['[email protected]']) | ||
gcal = PatchedGCalI( | ||
cal_names=cal_names, default_reminders=True, use_legacy_import=True) | ||
vcal_path = TEST_DATA_DIR + '/vv.txt' | ||
assert gcal.ImportICS(icsFile=open(vcal_path, errors='replace')) | ||
|
||
|
||
def test_parse_reminder(): | ||
MINS_PER_DAY = 60 * 24 | ||
MINS_PER_WEEK = MINS_PER_DAY * 7 | ||
|