diff --git a/rowers/templates/about_us.html b/rowers/templates/about_us.html index f12f636b..c7c998c7 100644 --- a/rowers/templates/about_us.html +++ b/rowers/templates/about_us.html @@ -94,14 +94,18 @@ and inspired by the RowPro Dan Burpee spreadsheet

Beyond the basics, rowsandall.com provides a rich tool set for OTW rowing. You can use it to estimate stroke power and to correct - for the effects of wind and current. For indoor rowing, when used - with painsled, the tools enable graphical analsis of stroke metrics + for the effects of wind and current. For indoor rowing, when + used with painsled, and OTW rowing, when used + with a NK Empower Oarlock, + the tools enable graphical analsis of stroke metrics including:

These can be analyzed versus time, distance, stroke rate or other @@ -138,6 +142,8 @@ You will be taken to the secure PayPal payment site.

diff --git a/rowers/tests.py b/rowers/tests.py index 0e0c4acd..2ee797c7 100644 --- a/rowers/tests.py +++ b/rowers/tests.py @@ -690,6 +690,37 @@ class ViewTest(TestCase): os.remove(f_to_be_deleted) + def test_upload_view_SpeedCoach2v127intervals(self): + self.c.login(username='john',password='koeinsloot') + + filename = 'C:\\python\\rowingdata\\testdata\\SpeedCoach2Link_interval.csv' + f = open(filename,'rb') + file_data = {'file': f} + + form_data = { + 'title':'test', + 'workouttype':'water', + 'notes':'aap noot mies', + 'make_plot':False, + 'upload_to_c2':False, + 'plottype':'timeplot', + 'file': f, + } + + form = DocumentsForm(form_data,file_data) + + response = self.c.post('/rowers/workout/upload/', form_data, follow=True) + f.close() + self.assertRedirects(response, expected_url='/rowers/workout/1/edit', + status_code=302,target_status_code=200) + + self.assertEqual(response.status_code, 200) + + w = Workout.objects.get(id=1) + f_to_be_deleted = w.csvfilename + os.remove(f_to_be_deleted) + + def test_upload_view_TCX_NoHR(self): self.c.login(username='john',password='koeinsloot')