mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-23 16:32:15 +00:00
Fixed Pep8 - I promise I'll make a pre-commit hook sometime!
This commit is contained in:
@@ -24,6 +24,7 @@ from django.core import mail, signing
|
||||
from django.http import HttpResponseBadRequest
|
||||
from django.conf import settings
|
||||
|
||||
|
||||
@screenshot_failure_cls
|
||||
class BaseRigboardTest(AutoLoginTest):
|
||||
def setUp(self):
|
||||
@@ -39,6 +40,7 @@ class BaseRigboardTest(AutoLoginTest):
|
||||
self.wait.until(animation_is_finished())
|
||||
self.assertTrue(self.page.is_expanded)
|
||||
|
||||
|
||||
@screenshot_failure_cls
|
||||
class TestRigboard(BaseRigboardTest):
|
||||
def setUp(self):
|
||||
@@ -100,6 +102,7 @@ class TestRigboard(BaseRigboardTest):
|
||||
self.assertIn('create', self.driver.current_url)
|
||||
# Ideally get a response object to assert 200 on
|
||||
|
||||
|
||||
@screenshot_failure_cls
|
||||
class TestEventCreate(BaseRigboardTest):
|
||||
def setUp(self):
|
||||
@@ -328,6 +331,7 @@ class TestEventCreate(BaseRigboardTest):
|
||||
def test_subhire_creation(self):
|
||||
pass
|
||||
|
||||
|
||||
@screenshot_failure_cls
|
||||
class TestEventDuplicate(BaseRigboardTest):
|
||||
def setUp(self):
|
||||
@@ -427,6 +431,7 @@ class TestEventDuplicate(BaseRigboardTest):
|
||||
self.assertIn("Test Item 2", table.text)
|
||||
self.assertNotIn("Test Item 3", table.text)
|
||||
|
||||
|
||||
@screenshot_failure_cls
|
||||
class TestEventEdit(BaseRigboardTest):
|
||||
def setUp(self):
|
||||
@@ -487,6 +492,7 @@ class TestEventEdit(BaseRigboardTest):
|
||||
table = self.page.item_table
|
||||
self.assertIn("Test Item 3", table.text)
|
||||
|
||||
|
||||
@screenshot_failure_cls
|
||||
class TestEventDetail(BaseRigboardTest):
|
||||
def setUp(self):
|
||||
@@ -523,6 +529,7 @@ class TestEventDetail(BaseRigboardTest):
|
||||
self.assertEqual(self.client.email, self.page.email)
|
||||
self.assertEqual(self.client.phone, None)
|
||||
|
||||
|
||||
@screenshot_failure_cls
|
||||
class TestCalendar(BaseRigboardTest):
|
||||
def setUp(self):
|
||||
@@ -708,6 +715,7 @@ class TestCalendar(BaseRigboardTest):
|
||||
|
||||
# Wow - that was a lot of tests
|
||||
|
||||
|
||||
@screenshot_failure_cls
|
||||
class ClientEventAuthorisationTest(TestCase):
|
||||
auth_data = {
|
||||
@@ -814,6 +822,7 @@ class ClientEventAuthorisationTest(TestCase):
|
||||
self.assertEqual(mail.outbox[0].to, ['authemail@function.test'])
|
||||
self.assertEqual(mail.outbox[1].to, [settings.AUTHORISATION_NOTIFICATION_ADDRESS])
|
||||
|
||||
|
||||
@screenshot_failure_cls
|
||||
class TECEventAuthorisationTest(TestCase):
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user