Private
Public Access
1
0

mocking myqueue in most tests

This commit is contained in:
Sander Roosendaal
2019-02-10 15:54:09 +01:00
parent 9ec2b06338
commit 5becabb216
15 changed files with 75 additions and 11 deletions

View File

@@ -5,6 +5,7 @@ from rowers.utils import allmonths,allsundays
import rowers.plannedsessions as plannedsessions
@override_settings(TESTING=True)
class TrainingPlanTest(TestCase):
def setUp(self):
self.u = UserFactory()
@@ -162,6 +163,7 @@ class TrainingPlanTest(TestCase):
@override_settings(TESTING=True)
class SessionLinkTest(TestCase):
def setUp(self):
self.u = UserFactory()
@@ -327,6 +329,7 @@ class SessionLinkTest(TestCase):
# 2019-01-12, HM
@override_settings(TESTING=True)
class SessionCompleteTest(TestCase):
def setUp(self):
self.u = UserFactory()
@@ -562,6 +565,7 @@ class SessionCompleteTest(TestCase):
self.assertEqual(response.status_code,200)
@override_settings(TESTING=True)
class ChallengeCompleteTest(TestCase):
def setUp(self):
self.u = UserFactory()
@@ -785,6 +789,7 @@ class ChallengeCompleteTest(TestCase):
response = self.c.get(url)
self.assertEqual(response.status_code,200)
@override_settings(TESTING=True)
class MandatoryTestCompleteTest(TestCase):
def setUp(self):
self.u = UserFactory()
@@ -996,6 +1001,7 @@ class MandatoryTestCompleteTest(TestCase):
response = self.c.get(url,follow=True)
self.assertEqual(response.status_code,200)
@override_settings(TESTING=True)
class PlannedSessionsView(TestCase):
def setUp(self):
# user