from rest_framework.test import APITestCase class CalendarURLResolutionTests(APITestCase): """ Test suite to ensure all calendar API endpoints resolve and execute cleanly via absolute paths. """ def test_sync_occasions_endpoint(self): """Test sync occasions endpoint is accessible""" response = self.client.get('/api/calendar/sync-occasions/') self.assertLess(response.status_code, 500) def test_adjustemnts_endpoint(self): """Test adjustments config endpoint is accessible""" response = self.client.get('/api/calendar/adjustemnts/') self.assertLess(response.status_code, 500) def test_occasions_endpoint(self): """Test occasions list endpoint is accessible""" response = self.client.get('/api/calendar/occasions/') self.assertLess(response.status_code, 500)