mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Updated tests after French translation update
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user