Private
Public Access
1
0

first pass straightforward testing workviews

This commit is contained in:
Sander Roosendaal
2019-02-11 22:29:36 +01:00
parent dfb27f264c
commit 45d2c73fc7
7 changed files with 995 additions and 3 deletions

View File

@@ -112,9 +112,16 @@ class WorkoutViewTest(TestCase):
form_data = {
'xaxis':'time',
'yaxis1':'hr',
'yaxis2': 'spm'
'yaxis2': 'spm',
'includereststrokes': True,
'plottype': 'line'
}
form = FlexOptionsForm(form_data)
if not form.is_valid():
print form.errors
self.assertTrue(form.is_valid())
response = self.c.post(url,form_data)
self.assertEqual(response.status_code,200)
@@ -133,6 +140,7 @@ class WorkoutViewTest(TestCase):
'savefavorite':True
}
response = self.c.post(url,form_data)
self.assertEqual(response.status_code,200)
@@ -151,7 +159,9 @@ class WorkoutViewTest(TestCase):
form_data = {
'xaxis':'time',
'yaxis1':'hr',
'yaxis2': 'spm'
'yaxis2': 'spm',
'includereststrokes': True,
'plottype': 'line'
}
response = self.c.post(url,form_data)