Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/template_tests/syntax_tests
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25610 -- Reverted removal of request.current_app ↵Marten Kenbeek2015-10-261-0/+20
| | | | | | | in {% url %} tag. The deprecation removal in 5e450c52aafb62b9d83c8ac08892e0b92cbec4aa removed too much.
* Refs #23913 -- Removed support for a single equals sign ↵Tim Graham2015-09-241-44/+6
| | | | | | in {% if %} tag. Per deprecation timeline.
* Refs #13408 -- Made unpacking mismatch an exception in ↵Tim Graham2015-09-241-34/+18
| | | | {% for %} tag per deprecation timeline.
* Refs #22384 -- Removed the ability to reverse URLs by ↵Tim Graham2015-09-241-50/+19
| | | | dotted path per deprecation timeline.
* Refs #24451 -- Removed comma-separated {% cycle %} ↵Tim Graham2015-09-241-33/+1
| | | | syntax per deprecation timeline.
* Refs #24022 -- Removed the ssi tag per deprecation timeline.Tim Graham2015-09-241-112/+0
|
* Refs #22306 -- Removed cycle/firstof template tags from ↵Tim Graham2015-09-242-20/+8
| | | | | | "future". Per deprecation timeline.
* Fixed #25404 -- Added line numbers to ↵Dave Smith2015-09-152-5/+14
| | | | | | | TemplateSyntaxError strings. This makes it much easier to diagnose a test failure when all you have is the stack trace from an uncaught TemplateSyntaxError.
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-124-4/+12
|
* Fixed #24257 -- Corrected i18n handling of percent signs.Doug Beck2015-08-122-0/+19
| | | | | | | | | | | | | | | Refactored tests to use a sample project. Updated extraction: * Removed special handling of single percent signs. * When extracting messages from template text, doubled all percent signs so they are not interpreted by gettext as string format flags. All strings extracted by gettext, if containing a percent sign, will now be labeled "#, python-format". Updated translation: * Used "%%" for "%" in template text before calling gettext. * Updated {% trans %} rendering to restore "%" from "%%".
* Refs #25236 -- Removed ifequal/ifnotequal usage.Tim Graham2015-08-082-5/+5
|
* Fixed #24127 -- Changed the default current_app to the ↵Marten Kenbeek2015-07-271-3/+31
| | | | | | | current namespace. Changed the url template tag to use request.resolver_match.namespace as a default for the current_app argument if request.current_app is not set.
* Corrected HTML-escaping behaviour of url template tag.Luke Plant2015-07-211-1/+10
| | | | | | Due to the URL encoding applied by the tag for all parameters that might be partly controllable by an end-user, there are no XSS/security problems caused by this bug, only invalid HTML.
* Fixed #21695 -- Added asvar option to blocktrans.Matthew Somerville2015-07-011-0/+35
| | | | Thanks Bojan Mihelac for the initial patch.
* Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham2015-06-246-48/+48
| | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
* Fixed #23516 -- Added caching of include tag Template ↵Matthew Somerville2015-06-061-0/+14
| | | | | | | objects This also speeds up for loops that render the same template multiple times.
* Fixed #24230 -- Added translated language name for i18n ↵Tomáš Ehrlich2015-06-021-10/+27
| | | | template tag/filter.
* Fixed #17085, #24783 -- Refactored template library ↵Preston Timmons2015-05-2113-11/+33
| | | | | | | | registration. * Converted the ``libraries`` and ``builtins`` globals of ``django.template.base`` into properties of the Engine class. * Added a public API for explicit registration of libraries and builtins.
* Updated template tests to create their own engine.Preston Timmons2015-04-203-74/+46
| | | | This continues work to treat Django templates as a library.
* Fixed #12199 -- Added the ability to use "as" with the ↵Craig Oldford2015-04-141-0/+7
| | | | firstof template tag.
* Cleaned up the template debug implementation.Preston Timmons2015-03-201-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | This patch does three major things: * Merges the django.template.debug implementation into django.template.base. * Simplifies the debug implementation. The old implementation copied debug information to every token and node. The django_template_source attribute was set in multiple places, some quite hacky, like django.template.defaulttags.ForNode. Debug information is now annotated in two high-level places: * Template.compile_nodelist for errors during parsing * Node.render_annotated for errors during rendering These were chosen because they have access to the template and context as well as to all exceptions that happen during either the parse or render phase. * Moves the contextual line traceback information creation from django.views.debug into django.template.base.Template. The debug views now only deal with the presentation of the debug information.
* Fixed #24451 -- Deprecated comma-separated {% cycle %} ↵Tim Graham2015-03-072-2/+8
| | | | syntax.
* Fixed #24372 - Replaced TokenParser usage with ↵Preston Timmons2015-03-031-0/+43
| | | | traditional parsing.
* Moved ifchanged tests into syntax_tests/test_if_changed.py.Preston Timmons2015-02-241-0/+35
|
* Moved cache tests into syntax_tests/test_cache.py.Preston Timmons2015-02-241-2/+46
|
* Moved include tests into syntax_tests/test_include.py.Preston Timmons2015-02-241-2/+131
|
* Moved ssi tests into syntax_tests/test_ssi.py.Preston Timmons2015-02-241-0/+32
|
* Refs #24324 -- Fixed Python 2 test failures when path to ↵Tim Graham2015-02-181-0/+2
| | | | Django source contains non-ASCII characters.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-0611-14/+11
|
* Removed usage of deprecated removetags in a template test.Tim Graham2015-01-191-6/+4
|
* Removed ssi/url tags from future per deprecation ↵Tim Graham2015-01-171-5/+3
| | | | timeline; refs #21939.
* Fixed test from refs #23913 when running tests in reverse.Tim Graham2015-01-121-0/+2
|
* Fixed #23913 -- Deprecated the `=` comparison in `if` ↵Ola Sitarska2015-01-111-1/+43
| | | | template tag.
* Fixed #24022 -- Deprecated the ssi tag.Preston Timmons2015-01-061-1/+2
|
* Applied ignore_warnings to Django testsClaude Paroz2014-12-306-128/+85
|
* Isolated template tests from Django settings.Aymeric Augustin2014-12-2836-798/+780
|
* Refs #23890 -- Restored silencing of numpy ↵Tim Graham2014-12-061-0/+8
| | | | DeprecationWarnings in template tests.
* Fixed #23958 -- Rewrote filter tests as unit tests.Preston Timmons2014-12-0637-242/+36
|
* Converted recently refactored templates tests to ↵Ramiro Morales2014-12-0436-73/+73
| | | | | | | | SimpleTestCase. These test methods don't need DB setup/teardown. Refs #23768 and b872134b.
* 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-0338-0/+4849