Skip to content

Commit

Permalink
Fix tests after locale update
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-m committed Feb 23, 2017
1 parent 62284ec commit ebfc770
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion feder/institutions/tests.py
Expand Up @@ -19,7 +19,7 @@ def setUp(self):

def test_get_absolute_url(self):
self.assertEqual(self.obj.get_absolute_url(),
'/institutions/example-institution')
'/instytucje/example-institution')

def test_get_str(self):
self.assertEqual(force_text(self.obj),
Expand Down
3 changes: 1 addition & 2 deletions feder/questionaries/tests/test_questionaries.py
Expand Up @@ -70,8 +70,7 @@ def test_get_success_url(self):
response = self.client.post(self.get_url())
self.assertFalse(Questionary.objects.filter(pk=self.questionary.pk).exists())
self.assertRedirects(response,
'/monitorings/%s' %
(self.questionary.monitoring.slug))
self.questionary.monitoring.get_absolute_url())


class SitemapTestCase(ObjectMixin, TestCase):
Expand Down
3 changes: 1 addition & 2 deletions feder/questionaries/tests/test_questions.py
Expand Up @@ -114,5 +114,4 @@ def test_get_success_url(self):
response = self.client.post(self.get_url())
self.assertFalse(Question.objects.filter(pk=self.question.pk).exists())
self.assertRedirects(response,
'/questionaries/%s' %
(self.questionary.pk))
self.questionary.get_absolute_url())

0 comments on commit ebfc770

Please sign in to comment.