Skip to content
Snippets Groups Projects
Commit 6222e4dc authored by Roang's avatar Roang
Browse files

Add basic plainui tests

parent 456ff842
Loading
from .utils import HubPlainUITestCase
class GuestTests(HubPlainUITestCase):
def test_index(self):
response = self.session.get('/index')
self.assertEqual(response.status_code, 200)
response = self.session.get('/me')
self.assertEqual(response.status_code, 200)
self.assertIn('login', response.url)
class UserTests(HubPlainUITestCase):
def test_index(self):
response = self.admin_session.get('/index')
self.assertEqual(response.status_code, 200)
response = self.admin_session.get('/me')
self.assertEqual(response.status_code, 200)
self.assertNotIn('logn', response.url)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment