summaryrefslogtreecommitdiff
path: root/tests/othertests/templates.py
AgeCommit message (Collapse)Author
2006-08-27Refs #2333 - Modified runtests script to use new testing framework. Migrated ↵Russell Keith-Magee
existing tests to use Django testing framework. All the 'othertests' have been migrated into 'regressiontests', and converted into doctests/unittests, as appropriate. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3661 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-27Fixed #1650: the {% extends %} tag now can extend a Template object passed ↵Jacob Kaplan-Moss
into the context. Thanks, clelland@gmail.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3465 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-15Fixed the timeuntil and timesince filter tests to not fail if the system clockMalcolm Tredinnick
ticks over during the tests. Also fixed the template tests to be able to run in standalone mode again. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3354 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-04Fixes #1338, Refs #1400, #2237 -- Modified variable resolution to allow ↵Russell Keith-Magee
template 'if' statements to work if TEMPLATE_STRING_IF_INVALID is set. Modified unit tests to force the use of this variable, so that returning '' isn't confused with an actual failure. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3268 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-21Fixed the "timeuntil" and "timesince" tests so that they don't fail on aMalcolm Tredinnick
machine under heavy load. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3188 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-21Fixed #2163 -- Corrected typo when handling datetimes with timezones in the ↵Malcolm Tredinnick
timesince filter. Thanks, Alex Dedul. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3186 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-21Fixed #2053 -- added an optional comparison argument to the "timesince" filter.Malcolm Tredinnick
Added a "timeuntil" filter that works analogously. Thanks, john@sneeu.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3185 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-18Fixed #2181 -- allow '{' and '}' to be escaped via {% templatetag ... %}.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3138 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-08Fixed #2109 -- Convert old-style classes to new-style classes throughout ↵Adrian Holovaty
Django. Thanks, Nicola Larosa git-svn-id: http://code.djangoproject.com/svn/django/trunk@3113 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-08Added django.template.Token.split_contents() and used it to add support for ↵Adrian Holovaty
strings with spaces in {% ifchanged %} git-svn-id: http://code.djangoproject.com/svn/django/trunk@3112 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-08Fixed #2026 -- Added support for 'and' in template 'if' tags, added dozens ↵Adrian Holovaty
of unit tests and updated docs. Thanks, ckknight git-svn-id: http://code.djangoproject.com/svn/django/trunk@3108 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-16Fixed #1321 -- Made DJANGO_SETTINGS_MODULE optional. You can now call ↵Adrian Holovaty
django.conf.settings.configure() to set settings manually if you don't have a settings module. Thanks, Malcolm Tredinnick, Luke Plant, Fredrik Lundh git-svn-id: http://code.djangoproject.com/svn/django/trunk@2927 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-02MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly ↵Adrian Holovaty
backwards-incompatible. Please read http://code.djangoproject.com/wiki/RemovingTheMagic for upgrade instructions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@2809 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-17Fixed spaceless template-tag tests in trunk (from magic-removal [2030])Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2036 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-15Fixed #1067 and #276 -- Added a {% spaceless %} tag, available in all templatesAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1967 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-15Fixed #1176 -- Changed {% comment %} template tag not to generate a ↵Adrian Holovaty
nodelist, so it's now possible to comment-out broken template tags. Thanks, Kieran Holland git-svn-id: http://code.djangoproject.com/svn/django/trunk@1964 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-16Changed resolve_variable to resolve integers and floats as integers and ↵Adrian Holovaty
floats. Added ifequal unit tests. Refs #959 git-svn-id: http://code.djangoproject.com/svn/django/trunk@1690 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-09Moved custom unit-test templatetag library into the unit test module itself, ↵Adrian Holovaty
to fix errors when running the test module directly. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1586 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-26Fixed #911 -- Made template system scoped to the parser instead of the ↵Adrian Holovaty
template module. Also changed the way tags/filters are registered and added support for multiple arguments to {% load %} tag. Thanks, rjwittams. This is a backwards-incompatible change for people who've created custom template tags or filters. See http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges for upgrade instructions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1443 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-25Negligible spacing change in tests/othertests/templates.pyAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1416 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-23Fixed #603 -- Added template debugging errors to pretty error-page output, ↵Adrian Holovaty
if TEMPLATE_DEBUG setting is True. Also refactored FilterParser for a significant speed increase and changed the template_loader interface so that it returns information about the loader. Taken from new-admin. Thanks rjwittams and crew git-svn-id: http://code.djangoproject.com/svn/django/trunk@1379 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-22Fixed #598 -- Added {% include %} template tag. Added docs and unit tests. ↵Adrian Holovaty
Thanks, rjwittams git-svn-id: http://code.djangoproject.com/svn/django/trunk@1349 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-17fixed two failing i18n tests - they only failed when using ./runtests, now ↵Georg Bauer
they work both ways. And template tests give tracebacks when they fail. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1277 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-04Merged i18n branch into the trunk! Fixes #65, and perhaps some others. NB: ↵Jacob Kaplan-Moss
this means that the i18n branch is now obsolete and will be made read-only. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1068 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-14Changed template unit test runner to use new template-loader framework from ↵Adrian Holovaty
[870] git-svn-id: http://code.djangoproject.com/svn/django/trunk@871 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-14Fixed #626 -- Moved template modules to django.core.template package. ↵Adrian Holovaty
django.core.template_loader is deprecated, in favor of django.core.template.loader. git-svn-id: http://code.djangoproject.com/svn/django/trunk@867 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29Fixed #295 - added {{{forloop.revcounter}}} and {{{forloop.revcounter0}}} ↵Jacob Kaplan-Moss
variables to for loops. Also updated the docs and added unit tests to verify correct behavior. Thanks, Clint. git-svn-id: http://code.djangoproject.com/svn/django/trunk@736 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29Fixed #501 -- Fixed block.super in multi-level templates, and added unit ↵Adrian Holovaty
tests to confirm. Thanks for the patch, django@kieranholland.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@715 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-11Fixed #486 -- Fixed bug in template filter parsing in edge cases, and added ↵Adrian Holovaty
unit tests. Thanks, Simon git-svn-id: http://code.djangoproject.com/svn/django/trunk@634 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-01Fixed #365 -- Changed template.resolve_variable to resolve hard-coded ↵Adrian Holovaty
strings. Thanks, davidschein git-svn-id: http://code.djangoproject.com/svn/django/trunk@587 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-29Fixed #256 and #334 -- Added {% ifequal %} template tag. Also, {% ifequal %} ↵Adrian Holovaty
and {% ifnotequal %} now both accept an optional {% else %} clause. Unit tests included. git-svn-id: http://code.djangoproject.com/svn/django/trunk@574 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01Added framework for writing non-model-based tests, and added tests for cache ↵Jacob Kaplan-Moss
and templates from the old django/tests location (which has been removed). git-svn-id: http://code.djangoproject.com/svn/django/trunk@367 bcc190cf-cafb-0310-a4f2-bffc1f526a37