Source code for intranet.apps.eighth.tests.admin.test_admin_maintenance

from django.urls import reverse

from ..eighth_test import EighthAbstractTest


[docs]class EighthAdminMaintenanceTest(EighthAbstractTest):
[docs] def test_index_view(self): self.make_admin() self.reauth() response = self.client.get(reverse("eighth_admin_maintenance")) self.assertEqual(200, response.status_code)
[docs] def test_start_of_year_view(self): self.make_admin() self.reauth() response = self.client.get(reverse("eighth_admin_maintenance_start_of_year")) self.assertEqual(200, response.status_code)
[docs] def test_clear_comments_view(self): self.make_admin() self.reauth() response = self.client.get(reverse("eighth_admin_maintenance_clear_comments")) self.assertEqual(200, response.status_code)