Updated tests after French translation update
This commit is contained in:
parent
2dba812d86
commit
389c3ffc04
|
@ -56,7 +56,7 @@ class LogEntryTests(TestCase):
|
||||||
logentry = LogEntry.objects.filter(content_type__model__iexact='article').latest('id')
|
logentry = LogEntry.objects.filter(content_type__model__iexact='article').latest('id')
|
||||||
self.assertEqual(logentry.get_change_message(), 'Changed title and hist.')
|
self.assertEqual(logentry.get_change_message(), 'Changed title and hist.')
|
||||||
with translation.override('fr'):
|
with translation.override('fr'):
|
||||||
self.assertEqual(logentry.get_change_message(), 'Title et hist modifié(s).')
|
self.assertEqual(logentry.get_change_message(), 'Modification de title et hist.')
|
||||||
|
|
||||||
add_url = reverse('admin:admin_utils_article_add')
|
add_url = reverse('admin:admin_utils_article_add')
|
||||||
post_data['title'] = 'New'
|
post_data['title'] = 'New'
|
||||||
|
@ -134,8 +134,9 @@ class LogEntryTests(TestCase):
|
||||||
with translation.override('fr'):
|
with translation.override('fr'):
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
logentry.get_change_message(),
|
logentry.get_change_message(),
|
||||||
"Domain modifié(s). Article « Article object » ajouté. "
|
"Modification de domain. Ajout de article « Article object ». "
|
||||||
"Title modifié(s) pour l'objet article « Article object ». Article « Article object » supprimé."
|
"Modification de title pour l'objet article « Article object ». "
|
||||||
|
"Suppression de article « Article object »."
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_logentry_get_edited_object(self):
|
def test_logentry_get_edited_object(self):
|
||||||
|
|
|
@ -234,4 +234,4 @@ class TestUtilsText(SimpleTestCase):
|
||||||
name='article', object='My first try',
|
name='article', object='My first try',
|
||||||
)
|
)
|
||||||
with override('fr'):
|
with override('fr'):
|
||||||
self.assertEqual('article «\xa0My first try\xa0» ajouté.', s)
|
self.assertEqual('Ajout de article «\xa0My first try\xa0».', s)
|
||||||
|
|
Loading…
Reference in New Issue