summaryrefslogtreecommitdiff
path: root/tests/regressiontests/templates/tests.py
AgeCommit message (Collapse)Author
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner
2013-02-24Fixed a test that was failing in Python 3.Julien Phalip
The issue was that as of Python 3, the generators' `next()` method becomes `__next()`. Thanks Alex Gaynor for noticing that. Refs #19890.
2013-02-24Fixed #19890 -- ifchanged templatetag rendered its content twiceChristopher Medrela
The content of ifchanged template tag was rendered twice: first time, to compare it with the previous value and the second time, to return the rendered output.
2013-02-24Fixed #15849 -- Made IfChanged node thread safe.Diederik van der Boor
Previously, the ifchanged node stored state on `self._last_seen`, thereby giving undesired results when the node is reused by another thread at the same time (e.g. globally caching a Template object). Thanks to akaihola for the report and Diederik van der Boor and Bas Peschier for the patch.
2013-02-24Caught warnings in the templates tests. Refs #17906.Aymeric Augustin
This was missing from f49e9a517f2fdc1d9ed7ac841ace77636cbd6747.
2013-02-23Minor cleanups in templates test importsClaude Paroz
2013-02-23Fixed #19827 -- Kept stacktrace in defaulttags exception reraisingLennart Regebro
Thanks Kronuz for the report and the initial patch.
2013-02-23Merge pull request #751 from bmispelon/ticket-6271Aymeric Augustin
2013-02-23Fixed #17906 - Autoescaping {% cycle %} and {% firstof %} templatetags.Vladimir A Filonov
This commit adds "future" version of these two tags with auto-escaping enabled.
2013-02-23Used token.split_contents() for tokenisation in template tags accepting ↵Baptiste Mispelon
variables. Fixed #6271, #18260.
2013-02-22Fixed #19882 -- Smarter tokenizing of {% for %} tag arguments.Baptiste Mispelon
2013-02-14Fixed #19829 -- Fixed index lookups for NumPy arrays in templates.Julien Phalip
2013-01-08Updated deprecated test assertionsClaude Paroz
2012-12-09Fixed #19392 -- Improved error for old-style url tags with dashes.Aymeric Augustin
Thanks dloewenherz for the report.
2012-12-08Fixed #19357 -- Allow non-ASCII chars in filesystem pathsClaude Paroz
Thanks kujiu for the report and Aymeric Augustin for the review.
2012-11-25Fixed test failure following capitalization fix in 2f035a972Claude Paroz
2012-11-25Change exception type to reduce confusion.Aymeric Augustin
TemplateSyntaxError is expected at compile time, not at run time. Refs #19280.
2012-11-24Fixed #19280 -- Raised an explicit exception for the old {% url %} syntax.Aymeric Augustin
2012-11-24Used a django.test.TestCase for compatibility with @override_settings.Aymeric Augustin
These tests were silently skipped.
2012-10-20Used @override_settings in several tests.Aymeric Augustin
2012-09-30Fixed #18807 -- Made 404.html and 500.html optionalClaude Paroz
Thanks Aymeric Augustin for the report and Jannis Leidel for the review.
2012-08-18[py3] Fixed templates tests.Aymeric Augustin
2012-08-14[py3] Ensured the template tests run.Aymeric Augustin
2012-08-12[py3] Made exception examination py3-compatible.Karen Tracey
2012-08-11Fixed #18739 -- witdthratio behavior on None argsKaren Tracey
Made behavior given None consistent with how non-numerics were handled. Thanks to ja.geb@me.com for the report.
2012-08-07[py3] Fixed access to dict keys/values/items.Aymeric Augustin
2012-07-22[py3] Updated urllib/urllib2/urlparse imports.Aymeric Augustin
Lots of functions were moved. Use explicit imports in all cases to keey it easy to identify where the functions come from.
2012-07-07Fixed #18254 -- Added ability to the static template tags to store the ↵Jannis Leidel
result in a contextt variable. Many thanks to Andrei Antoukh for the initial patch.
2012-06-19Fixed #14502 again -- saner verbatim closing tokenChris Beaven
Previously, the closing token for the verbatim tag was specified as the first argument of the opening token. As pointed out by Jannis, this is a rather major departure from the core tag standard. The new method reflects how you can give a specific closing name to {% block %} tags.
2012-06-07Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.Claude Paroz
Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
2012-06-07Fixed #14502 -- Added a verbatim template tag.Aymeric Augustin
Thanks SmileyChris for the patch.
2012-05-19Marked bytestrings with b prefix. Refs #18269Claude Paroz
This is a preparation for unicode literals general usage in Django (Python 3 compatibility).
2012-04-30Fixed #4746 -- Allowed spaces around filter separator.Aymeric Augustin
2012-04-29Fixed #18013 -- Use the new 'as' syntax for exceptions.Claude Paroz
Thanks Clueless for the initial patch. Note that unittest has been purposely left out (external package only used by Python 2.6).
2012-04-26Removed unneeded deprecation warning silencing in test suite.Claude Paroz
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17940 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-24Removed some leftover references to old-syntax ssi template tag tests. Refs ↵Claude Paroz
#18037. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17935 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-24Fixed #18037 -- Changed behaviour of url and ssi template tags to the new ↵Claude Paroz
syntax, as per official deprecation timeline. Thanks Ramiro Morales and Jannis Leidel for the review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17934 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-10Fixed #17229 -- Allow 'True', 'False' and 'None' to resolve to the ↵Aymeric Augustin
corresponding Python objects in templates. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17894 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-09Fixed #17848 -- Added setting_changed signal for cases when ↵Claude Paroz
TEMPLATE_CONTEXT_PROCESSORS is overriden in tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17885 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-30Removed with_statement imports, useless in Python >= 2.6. Refs #17965. ↵Claude Paroz
Thanks jonash for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17828 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-22Don't let ALLOWED_INCLUDE_ROOTS be accidentally set to a string rather than ↵Chris Beaven
a tuple. Thanks to Florian Apolloner for pointing this out. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17571 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-21Fixed #17660 -- Standardize extends tag token parsingChris Beaven
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17568 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-14Fixed #17675 -- Changed the implementation of the {% regroup %} template tag ↵Aymeric Augustin
to use the context properly when resolving expressions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17522 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-01-24Fixed #15092 -- Made `{% now %}` work with single-quoted string arguments. ↵Julien Phalip
Thanks to ninja_otoko for the report and to steveire, Aymeric Augustin and Claude Paroz for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17391 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-17Fixed #11166 -- {% widthratio %} should return 0 when the maximum is 0, no ↵Aymeric Augustin
matter the value. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17224 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-09Fixed #17348 -- Implemented {% elif %}. Refs #3100.Aymeric Augustin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17187 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-09Added a test that 'firstof' template filter doesn't auto-escape. cycle tag ↵Adrian Holovaty
already has such a test (cycle20). Refs #10912 git-svn-id: http://code.djangoproject.com/svn/django/trunk@17176 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-21Fixed #16787 -- Restored the ability to {% load %} template tags libraries ↵Aymeric Augustin
within packages. Thanks Ivan Sagalaev for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17133 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-26Removed remains from times when tests could be run outside of runtests.py.Aymeric Augustin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17040 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-13Convert the remainder of the relative imports in the tests to be absolute ↵Alex Gaynor
imports. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16981 bcc190cf-cafb-0310-a4f2-bffc1f526a37