mirror of
https://github.com/django/django.git
synced 2025-01-03 06:55:47 +00:00
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')
|
||||
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'
|
||||
@ -134,8 +134,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):
|
||||
|
@ -234,4 +234,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
Block a user