summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBaptiste Mispelon <bmispelon@gmail.com>2014-11-25 19:24:57 +0100
committerBaptiste Mispelon <bmispelon@gmail.com>2014-11-25 22:11:35 +0100
commitc335c0fee92a658b6a09453ae73e5c542f10703a (patch)
tree713339592a5168d3205c470fb27cff443585425e /tests
parent3a9aa155e2f7326df669953980ac87e78e932c43 (diff)
Fixed #23914 -- Improved {% now %} to allow storing its result in the context.
Thanks to Tim for the review.
Diffstat (limited to 'tests')
-rw-r--r--tests/template_tests/tests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/template_tests/tests.py b/tests/template_tests/tests.py
index 71da1ee40a..67ac08601b 100644
--- a/tests/template_tests/tests.py
+++ b/tests/template_tests/tests.py
@@ -1697,6 +1697,8 @@ class TemplateTests(TestCase):
datetime.now().day, datetime.now().month, datetime.now().year)),
'now06': ('''{% now "j 'n' Y"%}''', {}, '''%d '%d' %d''' % (
datetime.now().day, datetime.now().month, datetime.now().year)),
+ 'now07': ('''{% now "j n Y" as N %}-{{N}}-''', {}, '''-%d %d %d-''' % (
+ datetime.now().day, datetime.now().month, datetime.now().year)),
### URL TAG ########################################################
# Successes