fix
This commit is contained in:
@@ -21,7 +21,7 @@ class ListWorkoutTest(TestCase):
|
||||
birthdate=faker.profile()['birthdate'],
|
||||
gdproptin=True, ftpset=True,surveydone=True,
|
||||
gdproptindate=timezone.now(),
|
||||
rowerplan='coach')
|
||||
rowerplan='pro')
|
||||
|
||||
self.c = Client()
|
||||
self.user_workouts = WorkoutFactory.create_batch(5, user=self.r)
|
||||
@@ -80,7 +80,7 @@ class PlannedSessionTests(TestCase):
|
||||
birthdate=faker.profile()['birthdate'],
|
||||
gdproptin=True, ftpset=True,surveydone=True,
|
||||
gdproptindate=timezone.now(),
|
||||
rowerplan='coach')
|
||||
rowerplan='pro')
|
||||
|
||||
self.c = Client()
|
||||
self.user_workouts = WorkoutFactory.create_batch(5, user=self.r)
|
||||
@@ -135,7 +135,7 @@ class ForcecurveTest(TestCase):
|
||||
birthdate=faker.profile()['birthdate'],
|
||||
gdproptin=True, ftpset=True,surveydone=True,
|
||||
gdproptindate=timezone.now(),
|
||||
rowerplan='coach')
|
||||
rowerplan='pro')
|
||||
|
||||
self.c = Client()
|
||||
self.user_workouts = WorkoutFactory.create_batch(5, user=self.r)
|
||||
@@ -275,7 +275,7 @@ class WorkoutCompareTestNew(TestCase):
|
||||
birthdate=faker.profile()['birthdate'],
|
||||
gdproptin=True, ftpset=True,surveydone=True,
|
||||
gdproptindate=timezone.now(),
|
||||
rowerplan='coach')
|
||||
rowerplan='pro')
|
||||
|
||||
self.c = Client()
|
||||
self.user_workouts = WorkoutFactory.create_batch(5, user=self.r)
|
||||
@@ -377,7 +377,7 @@ class WorkoutBoxPlotTestNew(TestCase):
|
||||
birthdate=faker.profile()['birthdate'],
|
||||
gdproptin=True, ftpset=True,surveydone=True,
|
||||
gdproptindate=timezone.now(),
|
||||
rowerplan='coach')
|
||||
rowerplan='pro')
|
||||
|
||||
self.c = Client()
|
||||
self.user_workouts = WorkoutFactory.create_batch(5, user=self.r)
|
||||
@@ -478,7 +478,7 @@ class WorkoutHistoTestNew(TestCase):
|
||||
birthdate=faker.profile()['birthdate'],
|
||||
gdproptin=True, ftpset=True,surveydone=True,
|
||||
gdproptindate=timezone.now(),
|
||||
rowerplan='coach')
|
||||
rowerplan='pro')
|
||||
|
||||
self.c = Client()
|
||||
self.user_workouts = WorkoutFactory.create_batch(5, user=self.r)
|
||||
@@ -579,7 +579,7 @@ class History(TestCase):
|
||||
birthdate=faker.profile()['birthdate'],
|
||||
gdproptin=True, ftpset=True,surveydone=True,
|
||||
gdproptindate=timezone.now(),
|
||||
rowerplan='coach')
|
||||
rowerplan='pro')
|
||||
|
||||
self.c = Client()
|
||||
self.user_workouts = WorkoutFactory.create_batch(20, user=self.r)
|
||||
@@ -670,7 +670,7 @@ class GoldMedalScores(TestCase):
|
||||
birthdate=faker.profile()['birthdate'],
|
||||
gdproptin=True, ftpset=True,surveydone=True,
|
||||
gdproptindate=timezone.now(),
|
||||
rowerplan='coach')
|
||||
rowerplan='pro')
|
||||
|
||||
self.c = Client()
|
||||
self.user_workouts = WorkoutFactory.create_batch(20, user=self.r)
|
||||
@@ -774,7 +774,7 @@ class WorkoutFlexallTestNew(TestCase):
|
||||
birthdate=faker.profile()['birthdate'],
|
||||
gdproptin=True, ftpset=True,surveydone=True,
|
||||
gdproptindate=timezone.now(),
|
||||
rowerplan='coach')
|
||||
rowerplan='pro')
|
||||
|
||||
self.c = Client()
|
||||
self.user_workouts = WorkoutFactory.create_batch(5, user=self.r)
|
||||
@@ -875,7 +875,7 @@ class WorkoutStatsTestNew(TestCase):
|
||||
birthdate=faker.profile()['birthdate'],
|
||||
gdproptin=True, ftpset=True,surveydone=True,
|
||||
gdproptindate=timezone.now(),
|
||||
rowerplan='coach')
|
||||
rowerplan='pro')
|
||||
|
||||
self.c = Client()
|
||||
self.user_workouts = WorkoutFactory.create_batch(5, user=self.r)
|
||||
@@ -1188,7 +1188,7 @@ class MarkerPerformanceTest(TestCase):
|
||||
birthdate=faker.profile()['birthdate'],
|
||||
gdproptin=True, ftpset=True,surveydone=True,
|
||||
gdproptindate=timezone.now(),
|
||||
rowerplan='coach')
|
||||
rowerplan='pro')
|
||||
|
||||
self.c = Client()
|
||||
self.user_workouts = WorkoutFactory.create_batch(5, user=self.r)
|
||||
@@ -1366,7 +1366,7 @@ class AlertTest(TestCase):
|
||||
birthdate=faker.profile()['birthdate'],
|
||||
gdproptin=True, ftpset=True,surveydone=True,
|
||||
gdproptindate=timezone.now(),
|
||||
rowerplan='coach')
|
||||
rowerplan='pro')
|
||||
|
||||
self.c = Client()
|
||||
self.user_workouts = WorkoutFactory.create_batch(5, user=self.r)
|
||||
|
||||
@@ -183,7 +183,7 @@ description: ""
|
||||
birthdate=faker.profile()['birthdate'],
|
||||
gdproptin=True, ftpset=True, surveydone=True,
|
||||
gdproptindate=timezone.now(),
|
||||
rowerplan='coach',
|
||||
rowerplan='pro',
|
||||
paymentprocessor='braintree',
|
||||
street_address=faker.street_address(),
|
||||
city=faker.city(),
|
||||
@@ -242,7 +242,7 @@ description: ""
|
||||
birthdate=faker.profile()['birthdate'],
|
||||
gdproptin=True, ftpset=True, surveydone=True,
|
||||
gdproptindate=timezone.now(),
|
||||
rowerplan='coach',
|
||||
rowerplan='pro',
|
||||
paymentprocessor='braintree',
|
||||
street_address=faker.street_address(),
|
||||
city=faker.city(),
|
||||
@@ -306,7 +306,7 @@ description: ""
|
||||
birthdate=faker.profile()['birthdate'],
|
||||
gdproptin=True, ftpset=True, surveydone=True,
|
||||
gdproptindate=timezone.now(),
|
||||
rowerplan='coach',
|
||||
rowerplan='pro',
|
||||
paymentprocessor='braintree',
|
||||
street_address=faker.street_address(),
|
||||
city=faker.city(),
|
||||
@@ -373,7 +373,7 @@ description: ""
|
||||
birthdate=faker.profile()['birthdate'],
|
||||
gdproptin=True, ftpset=True, surveydone=True,
|
||||
gdproptindate=timezone.now(),
|
||||
rowerplan='coach',
|
||||
rowerplan='pro',
|
||||
paymentprocessor='braintree',
|
||||
street_address=faker.street_address(),
|
||||
city=faker.city(),
|
||||
@@ -507,7 +507,7 @@ description: ""
|
||||
birthdate=faker.profile()['birthdate'],
|
||||
gdproptin=True, ftpset=True, surveydone=True,
|
||||
gdproptindate=timezone.now(),
|
||||
rowerplan='coach',
|
||||
rowerplan='pro',
|
||||
paymentprocessor='braintree',
|
||||
street_address=faker.street_address(),
|
||||
city=faker.city(),
|
||||
@@ -548,7 +548,7 @@ description: ""
|
||||
birthdate=faker.profile()['birthdate'],
|
||||
gdproptin=True, ftpset=True, surveydone=True,
|
||||
gdproptindate=timezone.now(),
|
||||
rowerplan='coach',
|
||||
rowerplan='pro',
|
||||
paymentprocessor='braintree',
|
||||
street_address=faker.street_address(),
|
||||
city=faker.city(),
|
||||
@@ -570,7 +570,7 @@ description: ""
|
||||
birthdate=faker.profile()['birthdate'],
|
||||
gdproptin=True, ftpset=True, surveydone=True,
|
||||
gdproptindate=timezone.now(),
|
||||
rowerplan='coach',
|
||||
rowerplan='pro',
|
||||
paymentprocessor='braintree',
|
||||
street_address=faker.street_address(),
|
||||
city=faker.city(),
|
||||
@@ -617,7 +617,7 @@ description: ""
|
||||
birthdate=faker.profile()['birthdate'],
|
||||
gdproptin=True, ftpset=True, surveydone=True,
|
||||
gdproptindate=timezone.now(),
|
||||
rowerplan='coach',
|
||||
rowerplan='pro',
|
||||
paymentprocessor='braintree',
|
||||
street_address=faker.street_address(),
|
||||
city=faker.city(),
|
||||
@@ -663,7 +663,7 @@ description: ""
|
||||
birthdate=faker.profile()['birthdate'],
|
||||
gdproptin=True, ftpset=True, surveydone=True,
|
||||
gdproptindate=timezone.now(),
|
||||
rowerplan='coach',
|
||||
rowerplan='pro',
|
||||
paymentprocessor='braintree',
|
||||
street_address=faker.street_address(),
|
||||
city=faker.city(),
|
||||
@@ -708,7 +708,7 @@ description: ""
|
||||
birthdate=faker.profile()['birthdate'],
|
||||
gdproptin=True, ftpset=True, surveydone=True,
|
||||
gdproptindate=timezone.now(),
|
||||
rowerplan='coach',
|
||||
rowerplan='pro',
|
||||
paymentprocessor='braintree',
|
||||
street_address=faker.street_address(),
|
||||
city=faker.city(),
|
||||
@@ -759,7 +759,7 @@ description: ""
|
||||
birthdate=faker.profile()['birthdate'],
|
||||
gdproptin=True, ftpset=True, surveydone=True,
|
||||
gdproptindate=timezone.now(),
|
||||
rowerplan='coach',
|
||||
rowerplan='pro',
|
||||
paymentprocessor='braintree',
|
||||
street_address=faker.street_address(),
|
||||
city=faker.city(),
|
||||
|
||||
@@ -41,28 +41,7 @@ class TrialsTest(TestCase):
|
||||
self.r.protrialexpires = (nu+datetime.timedelta(days=10)).date()
|
||||
self.r.save()
|
||||
|
||||
self.assertEqual(isplanmember(self.u),False)
|
||||
self.assertEqual(iscoachmember(self.u),False)
|
||||
self.assertEqual(ispromember(self.u),True)
|
||||
|
||||
self.r.plantrialexpires = (nu+datetime.timedelta(days=10)).date()
|
||||
self.r.save()
|
||||
|
||||
self.assertEqual(isplanmember(self.u),True)
|
||||
self.assertEqual(iscoachmember(self.u),False)
|
||||
self.assertEqual(iscoachmember(self.u),True)
|
||||
self.assertEqual(ispromember(self.u),True)
|
||||
|
||||
def test_protrial(self):
|
||||
self.r.rowerplan = 'pro'
|
||||
self.r.save()
|
||||
self.assertEqual(isplanmember(self.u),False)
|
||||
self.assertEqual(iscoachmember(self.u),False)
|
||||
self.assertEqual(ispromember(self.u),True)
|
||||
|
||||
self.r.plantrialexpires = (nu+datetime.timedelta(days=10)).date()
|
||||
self.r.save()
|
||||
|
||||
self.assertEqual(is_plantrial(self.u),True)
|
||||
self.assertEqual(isplanmember(self.u),True)
|
||||
self.assertEqual(iscoachmember(self.u),False)
|
||||
self.assertEqual(ispromember(self.u),True)
|
||||
|
||||
@@ -25,7 +25,7 @@ class URLTests(TestCase):
|
||||
'sander@ds.ds',
|
||||
'koeinsloot',
|
||||
)
|
||||
r = Rower.objects.create(user=u,rowerplan='coach',gdproptin=True, ftpset=True,
|
||||
r = Rower.objects.create(user=u,rowerplan='pro',gdproptin=True, ftpset=True,
|
||||
gdproptindate=timezone.now())
|
||||
self.c = Client()
|
||||
cs = courses.kmltocourse('rowers/tests/testdata/thyro.kml')
|
||||
|
||||
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
Binary file not shown.
Reference in New Issue
Block a user