tested
This commit is contained in:
@@ -283,7 +283,7 @@ class URLTests(TestCase):
|
|||||||
for u in urls:
|
for u in urls:
|
||||||
if u not in tested and 'rowers' in u and 'http' not in u and 'authorize' not in u and 'import' not in u and 'logout' not in u:
|
if u not in tested and 'rowers' in u and 'http' not in u and 'authorize' not in u and 'import' not in u and 'logout' not in u:
|
||||||
response2 = self.c.get(u)
|
response2 = self.c.get(u)
|
||||||
if response2.status_code not in [200,302]:
|
if response2.status_code not in [200,302,301]:
|
||||||
print(len(tested))
|
print(len(tested))
|
||||||
print(response.templates[0].name)
|
print(response.templates[0].name)
|
||||||
print(url)
|
print(url)
|
||||||
@@ -291,7 +291,7 @@ class URLTests(TestCase):
|
|||||||
print(response2.status_code)
|
print(response2.status_code)
|
||||||
tested.append(u)
|
tested.append(u)
|
||||||
self.assertIn(response2.status_code,
|
self.assertIn(response2.status_code,
|
||||||
[200,302])
|
[200,302,301])
|
||||||
else:
|
else:
|
||||||
tested.append(u)
|
tested.append(u)
|
||||||
|
|
||||||
|
|||||||
BIN
rowers/tests/testdata/testdata.csv.gz
vendored
BIN
rowers/tests/testdata/testdata.csv.gz
vendored
Binary file not shown.
@@ -617,7 +617,7 @@ def fitnessmetric_view(request,id=0,mode='rower',
|
|||||||
'name':'Analysis'
|
'name':'Analysis'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'url':reverse('fitness_metric_view'),
|
'url':reverse('fitnessmetric_view'),
|
||||||
'name': 'Power Progress'
|
'name': 'Power Progress'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -522,8 +522,10 @@ def rower_register_view(request):
|
|||||||
title='New User Sample Data',
|
title='New User Sample Data',
|
||||||
notes='This is an example workout to get you started')
|
notes='This is an example workout to get you started')
|
||||||
newworkoutid = response[0]
|
newworkoutid = response[0]
|
||||||
|
if newworkoutid:
|
||||||
w = Workout.objects.get(id=newworkoutid)
|
w = Workout.objects.get(id=newworkoutid)
|
||||||
w.startdatetime = timezone.now()
|
w.startdatetime = timezone.now()
|
||||||
|
w.date = timezone.now().date()
|
||||||
w.save()
|
w.save()
|
||||||
|
|
||||||
# Create and send email
|
# Create and send email
|
||||||
|
|||||||
Reference in New Issue
Block a user