Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/template_tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Converted recently refactored templates tests to ↵Ramiro Morales2014-12-0439-90/+90
| | | | | | | | SimpleTestCase. These test methods don't need DB setup/teardown. Refs #23768 and b872134b.
* Removed redundant numbered parameters from str.format().Berker Peksag2014-12-031-2/+2
| | | | Since Python 2.7 and 3.1, "{0} {1}" is equivalent to "{} {}".
* Fixed "no such test method" error in template_tests.Berker Peksag2014-12-031-0/+1
| | | | | | | Without this patch, you couldn't run an individual test case in template_tests. Refs #23768
* Fixed #23768 -- Rewrote template tests as unit tests.Preston Timmons2014-12-0340-1369/+4854
|
* Fixed #23914 -- Improved {% now %} to allow storing its ↵Baptiste Mispelon2014-11-251-0/+2
| | | | | | result in the context. Thanks to Tim for the review.
* Fixed #23890 -- Silenced numpy DeprecationWarnings in ↵Tim Graham2014-11-251-0/+7
| | | | template tests.
* Encapsulated TEMPLATE_STRING_IF_INVALID in Engine.Aymeric Augustin2014-11-231-10/+5
|
* Moved template loaders management in Engine.Aymeric Augustin2014-11-232-12/+10
| | | | | | | | | | | Passed the engine instance to loaders. This is a prerequisite for looking up configuration on the engine instance instead of global settings. This is backwards incompatible for custom template loaders that override __init__. However the documentation doesn't talk about __init__ and the way to pass arguments to custom template loaders isn't specified. I'm considering it a private API.
* Deprecated dirs argument to override TEMPLATE_DIRS.Aymeric Augustin2014-11-231-1/+2
| | | | Cancels 2f0566fa. Refs #4278.
* Simplified caching of templatetags modules.Aymeric Augustin2014-11-191-5/+0
|
* Refactored getting the list of template loaders.Aymeric Augustin2014-11-162-17/+27
| | | | | This provides the opportunity to move utility functions specific to the Django Template Language outside of django.template.loader.
* Removed override_template_loaders and ↵Aymeric Augustin2014-11-161-17/+21
| | | | | | | override_with_test_loader. They can be replaced with override_settings and that makes the corresponding tests much more obvious.
* Moved all template loaders under django.template.loaders.Aymeric Augustin2014-11-161-2/+2
| | | | | | | | | | | | Reformatted the code of base.Loader according to modern standards. Turned the test template loader into a regular locmem.Loader -- but didn't document it. Added a normal deprecation path for BaseLoader which is a public API. Added an accelerated deprecation path for TestTemplateLoader which is a private API.
* Fixed #23789 -- TemplateResponse handles context ↵Luke Plant2014-11-101-0/+6
| | | | differently from render
* Fixed #23620 -- Used more specific assertions in the ↵Berker Peksag2014-11-031-5/+5
| | | | Django test suite.
* Avoided using private API get_template_from_string.Aymeric Augustin2014-10-311-11/+6
|
* Fixed urlize after smart_urlquote rewriteClaude Paroz2014-09-091-4/+20
| | | | Refs #22267.
* Fixed #23269 -- Deprecated django.utils.remove_tags() ↵Tim Graham2014-08-151-1/+2
| | | | | | and removetags filter. Also the unused, undocumented django.utils.html.strip_entities() function.
* Updated tests for added newlines in ↵Tim Graham2014-08-131-3/+3
| | | | 68686430638215b5405b20bd767c0be392c9221d.
* Added newlines to the ends of CSS, HTML, and JavaScript ↵Trey Hunner2014-08-132-2/+2
| | | | files missing them.
* Fixed #23276 -- Deprecated passing views as strings to ↵Tim Graham2014-08-121-1/+1
| | | | url().
* Fixed #23261 -- Deprecated old style list support for ↵Jaap Roes2014-08-111-0/+2
| | | | unordered_list filter.
* Fixed #16383 -- Raised the AttributeError raised in ↵Anubhav Joshi2014-07-311-2/+9
| | | | | | property of an object when used in a template. Thanks maraujop for the report and Hiroki and Tim Graham for review.
* Fixed #23060 -- Prevented UnicodeDecodeError in debug ↵qingfeng2014-07-261-0/+10
| | | | templatetag
* Fixed #21707 -- Added helpful error message when using ↵Anubhav Joshi2014-07-241-0/+3
| | | | | | {{ block.super }} in base template. Thanks mitar for the suggestion.
* Fixed #22789 -- Deprecated django.contrib.webdesign.Tim Graham2014-07-141-0/+2
| | | | Moved the {% lorem %} tag to built-in tags.
* Fixed #22223 -- Prevented over-escaping URLs in reverse()Claude Paroz2014-07-091-3/+3
| | | | | | | And follow more closely the class of characters defined in the RFC 3986. Thanks Erik van Zijst for the report and the initial patch, and Tim Graham for the review.
* Fixed #18400 -- Modified length template filter to ↵Susan Tan2014-06-051-2/+2
| | | | | | | return 0 for unknown variables. Thanks Florian for the bug report, luyikei for the initial code patch, and Bouke for the code review feedback.
* Fixed #22384 -- Deprecated reversing URLs by dotted path.Tim Graham2014-06-031-2/+2
|
* Fixed #21598 -- cleaned up template loader overrides in ↵Unai Zalakain2014-05-231-156/+125
| | | | | | | | | tests - Template loader overriding is managed with contexts. - The test loader is a class (function based loaders entered deprecation timeline in 1.4). - Template loader overrider that overrides with test loader added.
* Harmonized some PEP 0263 coding preamblesClaude Paroz2014-05-153-3/+3
|
* Fix many many typos in comments throughout the codebaseAlex Gaynor2014-04-262-3/+3
|
* Fixed #22378 -- Updated \d to [0-9]+ in urlpatterns of ↵chriscauley2014-04-171-4/+4
| | | | | | docs and tests. Thanks tomwys for the suggestion.
* Fixed #13408 -- Deprecated silent unpacking exception ↵e0ne2014-04-081-6/+12
| | | | | | passing in for template tag. Thanks peterbe for the suggestion.
* Fixed #21977 -- Deprecated SimpleTestCase.urlsAnubhav Joshi2014-04-062-5/+5
|
* Fixed #22218 -- Deprecated django.conf.urls.patterns.Tim Graham2014-04-032-12/+11
| | | | Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
* Corrected many style guide violations that the newest ↵Alex Gaynor2014-03-301-1/+2
| | | | version of flake8 catches
* Fixed #22306 -- Deprecated future versions of cycle and ↵Maxime Turcotte2014-03-281-2/+4
| | | | firstof template tags.
* Fixed #22294 -- Prevented converting length filter ↵Claude Paroz2014-03-221-2/+3
| | | | | | output to string Thanks Steve Pike for the report.
* The cycle and firstof tags no longer raise warnings.Aymeric Augustin2014-03-211-3/+1
| | | | Refs #17906.
* Switched {% cycle %} and {% firstof %} tags to ↵Tim Graham2014-03-211-4/+4
| | | | | | auto-escape their variables per deprecation timeline. refs #17906.
* Removed fix_ampersands template filter per deprecation ↵Tim Graham2014-03-212-9/+1
| | | | | | | | timeline. Also removed related utility functions: * django.utils.html.fix_ampersands * django.utils.html.clean_html
* Fixed flake8 warnings.Tim Graham2014-03-211-1/+1
|
* Fixed #22184 -- Allowed template_tests.tests to be run ↵Anubhav Joshi2014-03-151-0/+2
| | | | isolated
* Removed obsolete hack to run template tests.Aymeric Augustin2014-03-091-7/+1
|
* Fixed #21188 -- Introduced subclasses for ↵Claude Paroz2014-03-081-2/+3
| | | | | | | to-be-removed-in-django-XX warnings Thanks Anssi Kääriäinen for the idea and Simon Charette for the review.
* Fixed many typos in comments and docstrings.Rodolfo Carvalho2014-03-032-2/+2
| | | | Thanks Piotr Kasprzyk for help with the patch.
* Fixed #22130 -- Deprecated fix_ampersands, removed ↵Erik Romijn2014-03-011-1/+4
| | | | utils.clean_html()
* Removed Django 1.5 upgrade hints for {% url %} tag.Tim Graham2014-02-281-14/+0
| | | | Refs #19280 and Refs #19392.
* Fixed #21741 -- Fixed render_to_string to stop pushing ↵Baptiste Mispelon2014-02-223-0/+19
| | | | | | | empty dictionaries to its Context Thanks to kezabelle for the report and original patch and to numerodix for his improved patch.