aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_staff.py
blob: 68c182b50743c4818c18aaee2e15cec6b8af9151 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import os
import json
from tests import SiteTest, app

class StaffEndpoints(SiteTest):
    """ Test cases for staff subdomain """

    def test_staff_view(self):
        """ Check staff view redirects """
        response = self.client.get('/', app.config['STAFF_SUBDOMAIN'])
        self.assertEqual(response.status_code, 302)

    def test_jams_infractions(self):
        """ Check staff jams infractions view redirects """
        response = self.client.get('/jams/infractions', app.config['STAFF_SUBDOMAIN'])
        self.assertEqual(response.status_code, 302)