mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Fixed admin_utils test failures due to translation updates.
This commit is contained in:
parent
9af0a58756
commit
24123c3136
@ -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(), 'Modification de title et hist.')
|
||||
self.assertEqual(logentry.get_change_message(), 'Title et hist modifié(s).')
|
||||
|
||||
add_url = reverse('admin:admin_utils_article_add')
|
||||
post_data['title'] = 'New'
|
||||
@ -117,11 +117,12 @@ class LogEntryTests(TestCase):
|
||||
'Changed domain. Added article "Article object". '
|
||||
'Changed title for article "Article object". Deleted article "Article object".'
|
||||
)
|
||||
|
||||
with translation.override('fr'):
|
||||
self.assertEqual(
|
||||
logentry.get_change_message(),
|
||||
'Modification de domain. Article « Article object » ajouté. '
|
||||
'Modification de title pour l\'objet article « Article object ». Article « Article object » supprimé.'
|
||||
"Domain modifié(s). Article « Article object » ajouté. "
|
||||
"Title modifié(s) pour l'objet article « Article object ». Article « Article object » supprimé."
|
||||
)
|
||||
|
||||
def test_logentry_get_edited_object(self):
|
||||
|
Loading…
Reference in New Issue
Block a user