From 1651731168ff8fe355564a3abf6d146dfbc18ef0 Mon Sep 17 00:00:00 2001 From: Neil Muller Date: Sat, 5 Oct 2024 11:47:33 +0200 Subject: [PATCH] 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