Skip to content

armgit / wger

Public Imported from GitHub
0

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.py
index 4b115998e..0306593c1 100644
--- a/exercises/tests/categories.py
+++ b/exercises/tests/categories.py
@@ -36,8 +36,8 @@ class ExerciseCategoryTestCase(WorkoutManagerTestCase):
# Delete the category
count_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 redirect
diff --git a/exercises/tests/exercise.py b/exercises/tests/exercise.py
index ac6ff33fc..fdae2986f 100644
--- a/exercises/tests/exercise.py
+++ b/exercises/tests/exercise.py
@@ -258,7 +258,7 @@ class ExercisesTestCase(WorkoutManagerTestCase):
# Delete the exercise
count_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