Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Fix exercise detail test

Roland Geider3eb9907707aa
diff --git a/wger/core/tests/base_testcase.py b/wger/core/tests/base_testcase.py
index 8528b5f7c..ab68cd452 100644
--- a/wger/core/tests/base_testcase.py
+++ b/wger/core/tests/base_testcase.py
@@ -247,7 +247,7 @@ class WgerDeleteTestCase(WgerTestCase):
def delete_object(self, fail=False):
"""
- Helper function to test deleting a workout
+ Helper function to test deleting an object
"""
# Only perform the checks on derived classes
diff --git a/wger/exercises/tests/test_exercise.py b/wger/exercises/tests/test_exercise.py
index e122db72f..e22e124fa 100644
--- a/wger/exercises/tests/test_exercise.py
+++ b/wger/exercises/tests/test_exercise.py
@@ -108,16 +108,6 @@ class ExerciseIndexTestCase(WgerTestCase):
self.assertEqual(exercise_2.id, 1)
self.assertEqual(exercise_2.name, "An exercise")
- # Only authorized users see the edit links
- if admin:
- self.assertNotContains(response, 'Only registered users can do this')
-
- if logged_in and not demo:
- self.assertNotContains(response, 'Only registered users can do this')
-
- if logged_in and demo:
- self.assertContains(response, 'Only registered users can do this')
-
def test_exercise_index_editor(self):
"""
Tests the exercise overview page as a logged in user with editor rights