Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Update test for commit c687301

James Simasb00efde5c8f6
diff --git a/wger/exercises/tests/test_exercise.py b/wger/exercises/tests/test_exercise.py
index 94c8de54b..5b3d025b7 100644
--- a/wger/exercises/tests/test_exercise.py
+++ b/wger/exercises/tests/test_exercise.py
@@ -13,6 +13,7 @@
# You should have received a copy of the GNU Affero General Public License
import json
+import socket
from django.core import mail
from django.core.urlresolvers import reverse
@@ -290,7 +291,7 @@ class ExercisesTestCase(WorkoutManagerTestCase):
# Exercise was saved
exercise = Exercise.objects.get(pk=exercise_id)
if admin:
- self.assertEqual(exercise.license_author, 'wger.de')
+ self.assertEqual(exercise.license_author, socket.gethostname().lower())
self.assertEqual(exercise.status, Exercise.STATUS_ACCEPTED)
else:
self.assertEqual(exercise.license_author, 'test')