summaryrefslogtreecommitdiff
path: root/tests/regressiontests/templates
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-02-14Fixed #19819 - Improved template filter errors handling.Michael van Tellingen
Wrap the Parser.compile_filter method call with a try/except and call the newly added Parser.compile_filter_error(). Overwrite this method in the DebugParser to throw the correct error. Since this error was otherwise catched by the compile_function try/except block the debugger highlighted the wrong line.
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-27Fixed #19370 -- Made date filter properly handle midnight valueDanilo Bargen
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-11-09Fixed #19262 -- Support cookie pickling in SimpleTemplateResponseSean Breant
Refs #15863.
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-09-07[py3k] Silence many warnings while running the tests.Alex Gaynor
2012-08-18[py3] Fixed templates tests.Aymeric Augustin
2012-08-14[py3] Ensured the template tests run.Aymeric Augustin
2012-08-14[py3] Compared response.content with bytes.Aymeric Augustin
2012-08-12[py3] Made exception examination py3-compatible.Karen Tracey
2012-08-12[py3] Refactored __unicode__ to __str__.Aymeric Augustin
* Renamed the __unicode__ methods * Applied the python_2_unicode_compatible decorator * Removed the StrAndUnicode mix-in that is superseded by python_2_unicode_compatible * Kept the __unicode__ methods in classes that specifically test it under Python 2
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-08[py3] Used compatible imports of StringIO.Aymeric Augustin
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-22[py3] Replaced unicode/str by six.text_type/bytes.Aymeric Augustin
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-03-09Removed executable bits from some files that don't need them.Ramiro Morales
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17673 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