Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Use correct user to edit exercise translations

Roland Geider8ecea1956edf
diff --git a/wger/exercises/tests/test_exercise.py b/wger/exercises/tests/test_exercise.py
index 6308b48fd..812490a80 100644
--- a/wger/exercises/tests/test_exercise.py
+++ b/wger/exercises/tests/test_exercise.py
@@ -615,7 +615,7 @@ class ExerciseCustomApiTestCase(api_base_test.BaseTestCase, ApiBaseTestCase):
"""
description = '<script>alert();</script> The wild boar is a suid native...'
- self.get_credentials('test')
+ self.get_credentials('trainer1')
response = self.client.patch(self.url_detail, data={'description': description})
self.assertEqual(response.status_code, status.HTTP_200_OK)
@@ -628,7 +628,7 @@ class ExerciseCustomApiTestCase(api_base_test.BaseTestCase, ApiBaseTestCase):
"""
description = '<script>alert();</script> The wild boar is a suid native...'
- self.get_credentials('test')
+ self.get_credentials('trainer1')
response = self.client.patch(self.url_detail, data={'description': description})
self.assertEqual(response.status_code, status.HTTP_200_OK)