summaryrefslogtreecommitdiff
path: root/tests/context_processors
Commit message (Collapse)AuthorAgeFilesLines
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-073-45/+50
|
* Refs #28478 -- Deprecated TestCase's allow_database_queries and multi_db in ↵Simon Charette2019-01-101-1/+1
| | | | favor of databases.
* Updated test URL patterns to use path() and re_path().Tim Graham2018-12-311-3/+3
|
* Added multi_db=True to test cases that access the 'other' db connection.Tim Graham2017-02-101-0/+1
| | | | Fixed a failure in the context processors tests when running in reverse on MySQL due to an extra query after refs #27683.
* Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za2016-11-101-1/+1
|
* Fixed #26145 -- Made debug context processor return queries for all databases.Mounir Messelmeni2016-04-093-1/+10
|
* Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette2015-05-201-2/+2
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-1/+0
|
* Fixed #24149 -- Normalized tuple settings to lists.darkryder2015-02-031-1/+1
|
* Deprecated TEMPLATE_CONTEXT_PROCESSORS.Aymeric Augustin2014-12-281-2/+18
|
* Deprecated some arguments of django.shortcuts.render(_to_response).Aymeric Augustin2014-12-282-14/+14
| | | | | | dictionary and context_instance and superseded by context. Refactored tests that relied context_instance with more modern idioms.
* Moved context_processors from django.core to django.template.Aymeric Augustin2014-12-282-3/+3
|
* Avoided rewrapping Contexts in render_to_response.Aymeric Augustin2014-11-221-2/+3
| | | | | | | | | | | | | This change preserves backwards-compatibility for a very common misuse of render_to_response which even occurred in the official documentation. It fixes that misuse wherever it happened in the code base and docs. Context.__init__ is documented as accepting a dict and nothing else. Since Context is dict-like, Context(Context({})) could work to some extent. However, things get complicated with RequestContext and that gets in the way of refactoring the template engine. This is the real rationale for this change.
* Converted sql_queries into a lazily evaluated list.Bas Peschier2014-08-305-1/+63
| | | | Fixed #23364. Thanks Markush2010 for the report.
* Fixed #21977 -- Deprecated SimpleTestCase.urlsAnubhav Joshi2014-04-061-3/+2
|
* Fixed #22218 -- Deprecated django.conf.urls.patterns.Tim Graham2014-04-031-4/+4
| | | | Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
* Removed superfluous models.py files.Aymeric Augustin2013-12-171-1/+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 #21302 -- Fixed unused imports and import *.Tim Graham2013-11-021-1/+1
|
* Whitespace cleanup.Tim Graham2013-10-101-1/+0
| | | | | | | * Removed trailing whitespace. * Added newline to EOF if missing. * Removed blank lines at EOF. * Removed some stray tabs.
* Removed most of absolute_import importsClaude Paroz2013-07-291-2/+0
| | | | | Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
* Renamed some tests and removed references to modeltests/regressiontests.Florian Apolloner2013-02-261-1/+1
|
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-266-0/+69