[1.11.x] Updated tests after French translation update
Backport of 389c3ffc04
from master.
This commit is contained in:
parent
290b2849f7
commit
427f09ce5e
|
@ -59,7 +59,7 @@ class LogEntryTests(TestCase):
|
|||
logentry = LogEntry.objects.filter(content_type__model__iexact='article').latest('id')
|
||||
self.assertEqual(logentry.get_change_message(), 'Changed title and hist.')
|
||||
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')
|
||||
post_data['title'] = 'New'
|
||||
|
@ -137,8 +137,9 @@ class LogEntryTests(TestCase):
|
|||
with translation.override('fr'):
|
||||
self.assertEqual(
|
||||
logentry.get_change_message(),
|
||||
"Domain modifié(s). Article « Article object » ajouté. "
|
||||
"Title modifié(s) pour l'objet article « Article object ». Article « Article object » supprimé."
|
||||
"Modification de domain. Ajout de article « Article object ». "
|
||||
"Modification de title pour l'objet article « Article object ». "
|
||||
"Suppression de article « Article object »."
|
||||
)
|
||||
|
||||
def test_logentry_get_edited_object(self):
|
||||
|
|
|
@ -243,4 +243,4 @@ class TestUtilsText(SimpleTestCase):
|
|||
name='article', object='My first try',
|
||||
)
|
||||
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