From 4f1448dc3c80730d2dd19dc53fce1f76cb2ca2d1 Mon Sep 17 00:00:00 2001 From: Neil Muller Date: Sat, 5 Oct 2024 11:46:26 +0200 Subject: [PATCH 1/2] Bump minimum ical requirement --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c0d63092..c7d2191d 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ 'django-select2', 'djangorestframework<3.15.2', 'drf-extensions>=0.5.0', - 'icalendar>=4.0', + 'icalendar>=6.0', 'jsonfield', 'markdown>=2.5', 'pillow', From 1651731168ff8fe355564a3abf6d146dfbc18ef0 Mon Sep 17 00:00:00 2001 From: Neil Muller Date: Sat, 5 Oct 2024 11:47:33 +0200 Subject: [PATCH 2/2] Update test to new API --- wafer/schedule/tests/test_views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wafer/schedule/tests/test_views.py b/wafer/schedule/tests/test_views.py index 691e80c4..49cee54f 100644 --- a/wafer/schedule/tests/test_views.py +++ b/wafer/schedule/tests/test_views.py @@ -1749,8 +1749,8 @@ def test_ics_view(self): response = c.get('/schedule/schedule.ics') self.assertIn('Last-Modified', response) calendar = icalendar.Calendar.from_ical(response.content) - # No major errors - self.assertFalse(calendar.is_broken) + # No errors reported + self.assertEqual(len(calendar.errors), 0) # Check number of events self.assertEqual(len(calendar.walk(name='VEVENT')), 9) # Check we have the right time in places