Self hosted FLOSS fitness/workout, nutrition and weight tracker
Simplify exercise testcase (same result for aministrator and regular user)
Roland Geiderc129aef7980a
diff --git a/wger/exercises/tests/exercise.py b/wger/exercises/tests/exercise.pyindex 80cd70839..f7762d01c 100644--- a/wger/exercises/tests/exercise.py+++ b/wger/exercises/tests/exercise.py@@ -288,24 +288,14 @@ class ExercisesTestCase(WorkoutManagerTestCase):self.search_exercise()- def test_search_exercise_unauthorized(self):+ def test_search_exercise_logged_in(self):'''- Test deleting an exercise by an unauthorized user+ Test deleting an exercise by a logged in user'''self.user_login('test')self.search_exercise()- self.user_logout()-- def test_search_exercise_authorized(self):- '''- Test deleting an exercise by an authorized user- '''-- self.user_login()- self.search_exercise(fail=False)- self.user_logout()-+class DeleteExercisesTestCase(WorkoutManagerDeleteTestCase):'''