expanding tests a bit
This commit is contained in:
@@ -117,10 +117,23 @@ class ListWorkoutTest(TestCase):
|
||||
|
||||
form_data = {
|
||||
'workouts': ['1','2'],
|
||||
'action': ['remove'],
|
||||
'action': ['export'],
|
||||
'destination': 'strava',
|
||||
}
|
||||
|
||||
response = self.c.post(expected_url, form_data, follow=True)
|
||||
url = expected_url
|
||||
expected_url = reverse('workouts_view')
|
||||
self.assertRedirects(response,
|
||||
expected_url=expected_url,
|
||||
status_code=302,
|
||||
target_status_code=200)
|
||||
form_data = {
|
||||
'workouts': ['1','2'],
|
||||
'action': ['remove'],
|
||||
}
|
||||
|
||||
response = self.c.post(url, form_data, follow=True)
|
||||
expected_url = reverse('workouts_view')
|
||||
self.assertRedirects(response,
|
||||
expected_url=expected_url,
|
||||
|
||||
Reference in New Issue
Block a user