Commit 9ab0174e authored by Michal Čihař's avatar Michal Čihař

Adjust tests to new absolute urls

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 395f2cfe
......@@ -339,7 +339,7 @@ class LanguagesViewTest(ViewTestCase):
))
self.assertRedirects(
response,
reverse(
'http://example.com' + reverse(
'show_language',
kwargs={'lang': 'cs'}
)
......
......@@ -82,7 +82,10 @@ class AutoTranslationTest(ViewTestCase):
'Automatic translation completed, no strings were updated.',
)
self.assertRedirects(response, reverse('translation', kwargs=params))
self.assertRedirects(
response,
'http://example.com' + reverse('translation', kwargs=params)
)
# Check we've translated something
translation = self.subproject2.translation_set.get(language_code='cs')
self.assertEqual(translation.translated, expected)
......
......@@ -70,7 +70,7 @@ class LockTest(ViewTestCase):
)
self.assertRedirects(
response,
reverse('subproject', kwargs=self.kw_subproject)
self.subproject_url,
)
self.assertComponentLocked()
......@@ -79,7 +79,7 @@ class LockTest(ViewTestCase):
)
self.assertRedirects(
response,
reverse('subproject', kwargs=self.kw_subproject)
self.subproject_url,
)
self.assertComponentNotLocked()
......@@ -89,7 +89,7 @@ class LockTest(ViewTestCase):
)
self.assertRedirects(
response,
reverse('project', kwargs=self.kw_project)
self.project_url,
)
self.assertComponentLocked()
......@@ -106,7 +106,7 @@ class LockTest(ViewTestCase):
)
self.assertRedirects(
response,
reverse('project', kwargs=self.kw_project)
self.project_url,
)
self.assertComponentNotLocked()
......@@ -116,7 +116,7 @@ class LockTest(ViewTestCase):
)
self.assertRedirects(
response,
reverse('translation', kwargs=self.kw_translation)
self.translation_url,
)
self.assertTrue(self.get_translation().is_user_locked())
......@@ -125,7 +125,7 @@ class LockTest(ViewTestCase):
)
self.assertRedirects(
response,
reverse('translation', kwargs=self.kw_translation)
self.translation_url,
)
self.assertFalse(self.get_translation().is_user_locked())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment