You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
860 B
22 lines
860 B
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)
|