feat: handle multiple VCALENDAR components in a single ICS file#310
Conversation
Codecov Report❌ Patch coverage is
🚀 New features to boost your workflow:
|
abe-101
left a comment
There was a problem hiding this comment.
Change looks good to me; Would like to get @niccokunzmann review for approval
niccokunzmann
left a comment
There was a problem hiding this comment.
Hm. It seems we already have a fixture to access the calendars.
Also, keeping a uniform interface is quite nice.
699f791 to
0d47176
Compare
|
@niccokunzmann I deferred module-scoped dict fixture, adds complexity without performance benefit for current test scope. |
0d47176 to
4536d39
Compare
niccokunzmann
left a comment
There was a problem hiding this comment.
Generally, it is good to use the existing fixtures. You could even remove two_vcalendars_cals to make the tests slimmer.
I think this should work somehow like this now.
4536d39 to
c628558
Compare
niccokunzmann
left a comment
There was a problem hiding this comment.
Cool. Nice that that works!
c628558 to
ae2cdeb
Compare
|
Thanks for the reviews - Nicco and Abe! |
Closes #22
.icsfiles can contain multiple concatenatedVCALENDARblocks. Previously this caused aValueErrorwhen parsing. This addscalendars_from_ical()usingCalendar.from_ical(data, multiple=True)as the single parsing entry point across the CLI and test helpers.