all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 4c1f9806d792d3bbf40f78059106029b30aaa3bf 1999 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
 
From 24123c31362b5f3783d84d133c160e9fe16805fe Mon Sep 17 00:00:00 2001
From: Tim Graham <timograham@gmail.com>
Date: Mon, 1 Aug 2016 15:40:46 -0400
Subject: [PATCH] Fixed admin_utils test failures due to translation updates.

https://github.com/django/django/commit/24123c31362b5f3783d84d133c160e9fe16805fe

---
 tests/admin_utils/test_logentry.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/tests/admin_utils/test_logentry.py b/tests/admin_utils/test_logentry.py
index 7798373..8259bf0 100644
--- a/tests/admin_utils/test_logentry.py
+++ b/tests/admin_utils/test_logentry.py
@@ -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):
-- 
2.7.4


debug log:

solving 4c1f980 ...
found 4c1f980 in https://git.savannah.gnu.org/cgit/guix.git

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.