Self hosted FLOSS fitness/workout, nutrition and weight tracker
Update tests for exercises and categories
Roland Geider913f85446898
diff --git a/exercises/tests/categories.py b/exercises/tests/categories.pyindex 4b115998e..0306593c1 100644--- a/exercises/tests/categories.py+++ b/exercises/tests/categories.py@@ -36,8 +36,8 @@ class ExerciseCategoryTestCase(WorkoutManagerTestCase):# Delete the categorycount_before = ExerciseCategory.objects.count()- response = self.client.get(reverse('exercises.views.exercise_category_delete',- kwargs={'id': 4}))+ response = self.client.post(reverse('exercisecategory-delete',+ kwargs={'pk': 4}))count_after = ExerciseCategory.objects.count()# There is a redirectdiff --git a/exercises/tests/exercise.py b/exercises/tests/exercise.pyindex ac6ff33fc..fdae2986f 100644--- a/exercises/tests/exercise.py+++ b/exercises/tests/exercise.py@@ -258,7 +258,7 @@ class ExercisesTestCase(WorkoutManagerTestCase):# Delete the exercisecount_before = Exercise.objects.count()- response = self.client.get(reverse('exercises.views.exercise_delete', kwargs={'id': 3}))+ response = self.client.post(reverse('exercise-delete', kwargs={'pk': 3}))count_after = Exercise.objects.count()# There is a redirect