Skip to content

Commit

Permalink
Update test to new API
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil Muller committed Oct 5, 2024
1 parent 4f1448d commit 1651731
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wafer/schedule/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1651731

Please sign in to comment.