Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Fix tests, categories have own admin list

Roland Geiderced628a2a8ae
diff --git a/wger/exercises/tests/test_exercise.py b/wger/exercises/tests/test_exercise.py
index 7592def3f..e017d845b 100644
--- a/wger/exercises/tests/test_exercise.py
+++ b/wger/exercises/tests/test_exercise.py
@@ -104,14 +104,6 @@ class ExerciseIndexTestCase(WorkoutManagerTestCase):
# Only authorized users see the edit links
if admin:
self.assertNotContains(response, 'Only registered users can do this')
- if not self.is_mobile:
- self.assertContains(response, 'Edit category')
- self.assertContains(response, 'Delete category')
- self.assertContains(response, 'Add category')
- else:
- self.assertNotContains(response, 'Edit category')
- self.assertNotContains(response, 'Delete category')
- self.assertNotContains(response, 'Add category')
if logged_in and not demo:
self.assertNotContains(response, 'Only registered users can do this')