Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Fix url tests

Roland Geider6c48a909bce2
diff --git a/wger/exercises/tests/test_translation_model.py b/wger/exercises/tests/test_translation_model.py
index 139c517eb..602c7d40b 100644
--- a/wger/exercises/tests/test_translation_model.py
+++ b/wger/exercises/tests/test_translation_model.py
@@ -30,9 +30,9 @@ class TranslationModelTestCase(WgerTestCase):
def test_absolute_url_no_name(self):
"""Test that the get_absolute_url returns the correct URL"""
translation = Translation(exercise_id=2, description='abc', name='')
- self.assertEqual(translation.get_absolute_url(), '/en/exercise/2/view/')
+ self.assertEqual(translation.get_absolute_url(), '/en/exercise/2/view')
def test_absolute_url_no_name2(self):
"""Test that the get_absolute_url returns the correct URL"""
translation = Translation(exercise_id=42, description='abc', name='@@@@@')
- self.assertEqual(translation.get_absolute_url(), '/en/exercise/42/view/')
+ self.assertEqual(translation.get_absolute_url(), '/en/exercise/42/view')