Skip to content
Snippets Groups Projects
Commit 456ff842 authored by Roang's avatar Roang
Browse files

Add basic backoffice tests

parent 6dd88422
Branches
No related tags found
No related merge requests found
from .utils import HubBackofficeTestCase
class GuestTests(HubBackofficeTestCase):
def test_index(self):
response = self.session.get('/')
self.assertEqual(response.status_code, 200)
response = self.session.get('/sos')
self.assertEqual(response.status_code, 200)
self.assertIn('login', response.url)
class UserTests(HubBackofficeTestCase):
def test_index(self):
response = self.admin_session.get('/')
self.assertEqual(response.status_code, 200)
response = self.admin_session.get('/sos')
self.assertEqual(response.status_code, 200)
self.assertNotIn('login', response.url)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment