first pass straightforward testing workviews
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user