further coverage increases
This commit is contained in:
@@ -56,10 +56,18 @@ class ViewTest(TestCase):
|
||||
'rpe':6,
|
||||
'upload_to_c2':False,
|
||||
'plottype':'timeplot',
|
||||
'landingpage':'workout_edit_view',
|
||||
'raceid':0,
|
||||
'file': f,
|
||||
}
|
||||
|
||||
request = RequestFactory()
|
||||
request.user = self.u
|
||||
form = DocumentsForm(form_data,file_data)
|
||||
|
||||
optionsform = UploadOptionsForm(form_data,request=request)
|
||||
self.assertTrue(optionsform.is_valid())
|
||||
|
||||
response = self.c.post('/rowers/workout/upload/', form_data, follow=True)
|
||||
|
||||
self.assertRedirects(response, expected_url='/rowers/workout/'+encoded1+'/edit/',
|
||||
@@ -105,6 +113,8 @@ class ViewTest(TestCase):
|
||||
'boattype':'1x',
|
||||
'rpe':4,
|
||||
'dragfactor':'112',
|
||||
'raceid':0,
|
||||
'landingpage':'workout_edit_view',
|
||||
'private':True,
|
||||
'notes':'noot mies',
|
||||
}
|
||||
@@ -153,6 +163,8 @@ class ViewTest(TestCase):
|
||||
'upload_to_RunKeeper':False,
|
||||
'upload_to_MapMyFitness':False,
|
||||
'plottype':'timeplot',
|
||||
'raceid':0,
|
||||
'landingpage':'workout_edit_view',
|
||||
'file': f,
|
||||
'makeprivate':False,
|
||||
'landingpage':'workout_edit_view',
|
||||
@@ -197,6 +209,8 @@ class ViewTest(TestCase):
|
||||
'make_plot':False,
|
||||
'upload_to_c2':False,
|
||||
'plottype':'timeplot',
|
||||
'raceid':0,
|
||||
'landingpage':'workout_edit_view',
|
||||
'file': f,
|
||||
'rpe':6,
|
||||
}
|
||||
@@ -234,6 +248,8 @@ class ViewTest(TestCase):
|
||||
'make_plot':False,
|
||||
'upload_to_c2':False,
|
||||
'plottype':'timeplot',
|
||||
'raceid':0,
|
||||
'landingpage':'workout_edit_view',
|
||||
'file': f,
|
||||
'rpe':6,
|
||||
}
|
||||
@@ -269,6 +285,8 @@ class ViewTest(TestCase):
|
||||
'make_plot':False,
|
||||
'upload_to_c2':False,
|
||||
'plottype':'timeplot',
|
||||
'raceid':0,
|
||||
'landingpage':'workout_edit_view',
|
||||
'file': f,
|
||||
'rpe':6,
|
||||
}
|
||||
@@ -320,6 +338,8 @@ class ViewTest(TestCase):
|
||||
'make_plot':False,
|
||||
'upload_to_c2':False,
|
||||
'plottype':'timeplot',
|
||||
'raceid':0,
|
||||
'landingpage':'workout_edit_view',
|
||||
'file': f,
|
||||
'rpe':6,
|
||||
}
|
||||
@@ -358,6 +378,8 @@ class ViewTest(TestCase):
|
||||
'make_plot':False,
|
||||
'upload_to_c2':False,
|
||||
'plottype':'timeplot',
|
||||
'raceid':0,
|
||||
'landingpage':'workout_edit_view',
|
||||
'file': f,
|
||||
'rpe':6,
|
||||
}
|
||||
@@ -396,6 +418,8 @@ class ViewTest(TestCase):
|
||||
'make_plot':False,
|
||||
'upload_to_c2':False,
|
||||
'plottype':'timeplot',
|
||||
'raceid':0,
|
||||
'landingpage':'workout_edit_view',
|
||||
'file': f,
|
||||
'rpe':6,
|
||||
}
|
||||
@@ -450,6 +474,8 @@ class ViewTest(TestCase):
|
||||
'make_plot':False,
|
||||
'upload_to_c2':False,
|
||||
'plottype':'timeplot',
|
||||
'raceid':0,
|
||||
'landingpage':'workout_edit_view',
|
||||
'file': f,
|
||||
'rpe':6,
|
||||
}
|
||||
@@ -487,6 +513,8 @@ class ViewTest(TestCase):
|
||||
'make_plot':False,
|
||||
'upload_to_c2':False,
|
||||
'plottype':'timeplot',
|
||||
'raceid':0,
|
||||
'landingpage':'workout_edit_view',
|
||||
'rpe':1,
|
||||
'file': f,
|
||||
}
|
||||
@@ -525,6 +553,8 @@ class ViewTest(TestCase):
|
||||
'make_plot':False,
|
||||
'rpe':1,
|
||||
'upload_to_c2':False,
|
||||
'raceid':0,
|
||||
'landingpage':'workout_edit_view',
|
||||
'plottype':'timeplot',
|
||||
'file': f,
|
||||
}
|
||||
@@ -564,6 +594,8 @@ class ViewTest(TestCase):
|
||||
'notes':'aap noot mies',
|
||||
'make_plot':False,
|
||||
'upload_to_c2':False,
|
||||
'raceid':0,
|
||||
'landingpage':'workout_edit_view',
|
||||
'plottype':'timeplot',
|
||||
'file': f,
|
||||
}
|
||||
@@ -602,6 +634,8 @@ class ViewTest(TestCase):
|
||||
'notes':'aap noot mies',
|
||||
'make_plot':False,
|
||||
'upload_to_c2':False,
|
||||
'raceid':0,
|
||||
'landingpage':'workout_edit_view',
|
||||
'plottype':'timeplot',
|
||||
'file': f,
|
||||
}
|
||||
@@ -636,6 +670,8 @@ class ViewTest(TestCase):
|
||||
'make_plot':False,
|
||||
'upload_to_c2':False,
|
||||
'plottype':'timeplot',
|
||||
'raceid':0,
|
||||
'landingpage':'workout_edit_view',
|
||||
'rpe':4,
|
||||
'file': f,
|
||||
}
|
||||
@@ -670,6 +706,8 @@ class ViewTest(TestCase):
|
||||
'make_plot':False,
|
||||
'upload_to_c2':False,
|
||||
'plottype':'timeplot',
|
||||
'raceid':0,
|
||||
'landingpage':'workout_edit_view',
|
||||
'file': f,
|
||||
}
|
||||
|
||||
@@ -704,6 +742,8 @@ class ViewTest(TestCase):
|
||||
'make_plot':False,
|
||||
'upload_to_c2':False,
|
||||
'plottype':'timeplot',
|
||||
'raceid':0,
|
||||
'landingpage':'workout_edit_view',
|
||||
'rpe':1,
|
||||
'file': f,
|
||||
}
|
||||
@@ -740,6 +780,8 @@ class ViewTest(TestCase):
|
||||
'make_plot':False,
|
||||
'upload_to_c2':False,
|
||||
'plottype':'timeplot',
|
||||
'raceid':0,
|
||||
'landingpage':'workout_edit_view',
|
||||
'file': f,
|
||||
}
|
||||
|
||||
@@ -773,6 +815,8 @@ class ViewTest(TestCase):
|
||||
'make_plot':False,
|
||||
'upload_to_c2':False,
|
||||
'plottype':'timeplot',
|
||||
'raceid':0,
|
||||
'landingpage':'workout_edit_view',
|
||||
'file': f,
|
||||
}
|
||||
|
||||
@@ -806,6 +850,8 @@ class ViewTest(TestCase):
|
||||
'make_plot':False,
|
||||
'upload_to_c2':False,
|
||||
'plottype':'timeplot',
|
||||
'raceid':0,
|
||||
'landingpage':'workout_edit_view',
|
||||
'file': f,
|
||||
}
|
||||
|
||||
@@ -839,6 +885,8 @@ class ViewTest(TestCase):
|
||||
'make_plot':False,
|
||||
'upload_to_c2':False,
|
||||
'plottype':'timeplot',
|
||||
'raceid':0,
|
||||
'landingpage':'workout_edit_view',
|
||||
'file': f,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user