Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/template_tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Use assertEqual instead of assertEquals.Baptiste Mispelon2014-02-171-1/+1
|
* Made the new template.Context.flatten() method a public API.Marek Wywiał2014-02-161-0/+11
| | | | | | That method was introduced in 9db4271bd11ac23a5a5652bbcdf8fb6d4b997651. Refs #21765.
* Fixed #21939 -- Deprecated loading ssi/url tags from future.Zbigniew Siciarz2014-02-161-1/+3
|
* Fixed bad comparison logic introduced in ↵Baptiste Mispelon2014-02-151-1/+19
| | | | | | | | | d97bf2e9c8971764690caaf81a0914bc368d6b02. Refs #21765. Thanks to kezabelle for the quick report and to onjin for providing the patch.
* Fixed #21765 -- Added support for comparing Context ↵Marek Wywiał2014-02-152-0/+18
| | | | instances
* Fixed #21959 -- Handled Inf/NaN in widthratio tag.Aymeric Augustin2014-02-081-0/+2
| | | | Thanks rmoe for the report and the patch.
* Fixed #21417 -- Expanded TEMPLATE_STRING_IF_INVALID in ↵Claude Paroz2014-02-081-0/+2
| | | | | | | | blocktrans Thanks keturn for the reporti, Chris Medrela for details and Tim Graham for the review. Refs #19915.
* Fixed #21929 - Fixed test regression on Windows.Carl Meyer2014-02-041-1/+1
| | | | Thanks Michael Manfre for the report.
* Fixed #21874 -- Require Django applications to have a ↵Carl Meyer2014-01-271-0/+5
| | | | | | | | | | | | | | | | filesystem path. Wherever possible this filesystem path is derived automatically from the app module's ``__path__`` and ``__file__`` attributes (this avoids any backwards-compatibility problems). AppConfig allows specifying an app's filesystem location explicitly, which overrides all autodetection based on ``__path__`` and ``__file__``. This permits Django to support any type of module as an app (namespace packages, fake modules, modules loaded by other hypothetical non-filesystem module loaders), as long as the app is configured with an explicit filesystem path. Thanks Aymeric for review and discussion.
* Removed superfluous uses of TransRealMixin.Aymeric Augustin2014-01-271-48/+40
| | | | | The translation.override context manager cleans up after itself. As a consequence this mixin isn't needed any more in many cases.
* Moved sys.path-extending decorator to django.test.utils ↵Carl Meyer2014-01-261-16/+15
| | | | | | and used throughout test suite. Thanks Aymeric for the suggestion.
* Refs #21628 -- removed one usage of the imp module in ↵Alex Gaynor2014-01-191-2/+2
| | | | the tests. It is deprecated in Python 3.4
* Fixed #21774 -- Isolate all test urls from eachother.Marc Tamlyn2014-01-141-23/+25
| | | | | | | | | | | | | This (nearly) completes the work to isolate all the test modules from each other. This is now more important as importing models from another module will case PendingDeprecationWarnings if those modules are not in INSTALLED_APPS. The only remaining obvious dependencies are: - d.c.auth depends on d.c.admin (because of the is_admin flag to some views), but this is not so important and d.c.admin is in always_installed_apps - test_client_regress depends on test_client. Eventually these should become a single module, as the split serves no useful purpose.
* Imported override_settings from its new location.Aymeric Augustin2013-12-233-3/+3
|
* Dropped AppCache._empty, _with_app and _without_app.Aymeric Augustin2013-12-232-18/+15
| | | | | It's now easier to achieve the same effect with modify_settings or override_settings.
* Moved apps back in the toplevel django namespace.Aymeric Augustin2013-12-222-2/+2
| | | | Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
* Stopped iterating on INSTALLED_APPS.Aymeric Augustin2013-12-222-19/+21
| | | | Used the app cache's get_app_configs() method instead.
* Fixed #21639 -- Implemented RenderContext.__getitem__Alex Hill2013-12-201-0/+15
| | | | It's now consistent with RenderContext.get.
* Removed superfluous models.py files.Aymeric Augustin2013-12-171-0/+0
| | | | | | | Added comments in the three empty models.py files that are still needed. Adjusted the test runner to add applications corresponding to test labels to INSTALLED_APPS even when they don't have a models module.
* Fixed E124 pep8 warnings.Loic Bistuer2013-12-101-6/+2
|
* Refs #21230 -- removed direct settings manipulation from ↵Unai Zalakain2013-11-301-41/+32
| | | | template tests
* Fixed #21012 -- New API to access cache backends.Curtis Maloney2013-11-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thanks Curtis Malony and Florian Apolloner. Squashed commit of the following: commit 3380495e93f5e81b80a251b03ddb0a80b17685f5 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 14:18:07 2013 +0100 Looked up the template_fragments cache at runtime. commit 905a74f52b24a198f802520ff06290a94dedc687 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 14:19:48 2013 +0100 Removed all uses of create_cache. Refactored the cache tests significantly. Made it safe to override the CACHES setting. commit 35e289fe9285feffed3c60657af9279a6a2cfccc Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 12:23:57 2013 +0100 Removed create_cache function. commit 8e274f747a1f1c0c0e6c37873e29067f7fa022e8 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 12:04:52 2013 +0100 Updated docs to describe a simplified cache backend API. commit ee7eb0f73e6d4699edcf5d357dce715224525cf6 Author: Curtis Maloney <curtis@tinbrain.net> Date: Sat Oct 19 09:49:24 2013 +1100 Fixed #21012 -- Thread-local caches, like databases.
* Fixed #21460 -- Reenabled proper template precedence in ↵Pablo Martín2013-11-222-0/+31
| | | | | | find_template Refs #20806. Thanks Unai Zalakain for the review.
* Fixed all E261 warningscoagulant2013-11-032-2/+2
|
* Fixing E302 ErrorsJason Myers2013-11-0311-22/+102
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fixed flake8 E241Boryslav Larin2013-11-021-3/+3
|
* Fixed #21302 -- Fixed unused imports and import *.Tim Graham2013-11-022-2/+2
|
* Fixed all the E203 violationsAlex Gaynor2013-10-273-42/+42
|
* Fix all violators of E231Alex Gaynor2013-10-264-81/+81
|
* Fixed #20945 -- Allowed cache tag to use a specific cache.Curtis Maloney2013-10-241-1/+36
|
* Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol2013-10-234-0/+14
|
* Fixed #21307 -- Moved TransRealMixin to django.test.utils.Ramiro Morales2013-10-231-3/+1
|
* Removed some direct settings manipulations in tests; ↵Bouke Haarsma2013-10-213-79/+47
| | | | refs #21230.
* Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol2013-10-212-9/+9
|
* Removed unused local variables in tests.Tim Graham2013-10-193-9/+8
|
* Fixed #21287 -- Fixed E123 pep8 warningsAlasdair Nicol2013-10-185-11/+11
|
* Fixed #21268 -- Fixed E303 pep8 warningsAlasdair Nicol2013-10-182-3/+1
|
* Fixed #21285 -- Fixed E121,E122 pep8 warningsAlasdair Nicol2013-10-181-8/+8
|
* Fixed #21266 -- Fixed E201,E202 pep8 warnings.Larry O'Neill2013-10-152-24/+24
|
* Whitespace cleanup.Tim Graham2013-10-101-1/+1
| | | | | | | * Removed trailing whitespace. * Added newline to EOF if missing. * Removed blank lines at EOF. * Removed some stray tabs.
* Fixed #21161 -- Timezone-related tests on Windows.Aymeric Augustin2013-10-051-7/+10
| | | | Thanks Xelnor for the patch.
* Fixed #7557 -- Added type checking to Variable ↵Tim Graham2013-09-191-0/+4
| | | | | | | initialization. Thanks tobias for the suggestion and boblefrag and saz for work on the patch.
* Fixed #4278 -- Added a dirs parameter to a few functions ↵Berker Peksag2013-09-182-1/+22
| | | | | | | | | | | to override TEMPLATE_DIRS. * django.template.loader.get_template() * django.template.loader.select_template() * django.shortcuts.render() * django.shortcuts.render_to_response() Thanks amcnabb for the suggestion.
* Prevented arbitrary file inclusion with {% ssi %} tag ↵Tim Graham2013-09-111-0/+31
| | | | | | | | and relative paths. Thanks Rainer Koirikivi for the report and draft patch. This is a security fix; disclosure to follow shortly.
* Refactored code and tests that relied on ↵Aymeric Augustin2013-09-091-6/+6
| | | | | | django.utils.tzinfo. Refs #17262.
* Simplify FilterExpression.args_checkCurtis Maloney2013-09-091-1/+40
|
* Fix #20745: Don't silence TypeError raised inside templates.Baptiste Mispelon2013-09-081-0/+6
| | | | Thanks to robin for the report and claudep for the review.
* Fixed #16096 -- Added origin attribute to template ↵Preston Timmons2013-09-061-0/+13
| | | | | | instances. Thanks jdunck for the suggestion.
* Took advantage of django.utils.six.moves.urllib.*.Aymeric Augustin2013-09-051-4/+1
|
* Fixed #20989 -- Removed useless explicit list ↵Simon Charette2013-08-302-15/+15
| | | | comprehensions.