Code

Ticket #6326: 6326_tests.diff

File 6326_tests.diff, 782 bytes (added by akaihola, 6 years ago)

fix for the test case (same as in bug description)

Line 
1Index: tests/regressiontests/templates/tests.py
2===================================================================
3--- tests/regressiontests/templates/tests.py    (revision 7000)
4+++ tests/regressiontests/templates/tests.py    (working copy)
5@@ -736,7 +736,7 @@
6             'i18n09': ('{% load i18n %}{% trans "Page not found" noop %}', {'LANGUAGE_CODE': 'de'}, "Page not found"),
7 
8             # translation of a variable with a translated filter
9-            'i18n10': ('{{ bool|yesno:_("ja,nein") }}', {'bool': True}, 'ja'),
10+            'i18n10': ('{{ bool|yesno:_("yes,no,maybe") }}', {'bool': True, 'LANGUAGE_CODE': 'de'}, 'Ja'),
11 
12             # translation of a variable with a non-translated filter
13             'i18n11': ('{{ bool|yesno:"ja,nein" }}', {'bool': True}, 'ja'),