summaryrefslogtreecommitdiff
path: root/tests/template_tests/test_response.py
AgeCommit message (Collapse)Author
2024-01-29Refs #35141 -- Corrected value of CACHE_MIDDLEWARE_SECONDS in ↵Alexander Lazarević
CacheMiddlewareTest tests.
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2020-10-07Fixed #32002 -- Added headers parameter to HttpResponse and subclasses.Tom Carrick
2020-09-14Fixed #31789 -- Added a new headers interface to HttpResponse.Tom Carrick
2020-02-18Refs #26601 -- Deprecated passing None as get_response arg to middleware ↵Claude Paroz
classes. This is the new contract since middleware refactoring in Django 1.10. Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2019-02-09Removed uneeded generator expressions and list comprehensions.Sergey Fedoseev
2018-11-27Made reused RequestFactory instances class attributes.Simon Charette
2018-03-16Fixed hanging indentation in various code.Mariusz Felisiak
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2017-01-17Refs #26601 -- Removed support for old-style middleware using ↵Tim Graham
settings.MIDDLEWARE_CLASSES.
2016-11-24Fixed #27517 -- Fixed charset param in SimpleTemplateResponse.__init__().Kosei Kitahara
2016-11-14Fixed E305 flake8 warnings.Ramin Farajpour Cami
2016-05-17Refs #26601 -- Deprecated old-style middleware.Tim Graham
2016-05-17Fixed #26601 -- Improved middleware per DEP 0005.Florian Apolloner
Thanks Tim Graham for polishing the patch, updating the tests, and writing documentation. Thanks Carl Meyer for shepherding the DEP.
2016-02-05Fixed #26176 -- Fixed E123 flake8 warnings.Tim Graham
2016-01-29Refs #26022 -- Used context manager version of assertRaises in tests.Hasan
2015-12-03Fixed many spelling mistakes in code, comments, and docs.Josh Soref
2015-11-21Fixed #25780 -- Removed redundant status code assertions from testsAlex Morozov
2015-09-23Made template response APIs enforce the use of dict and backend-specific ↵Tim Graham
template objects. Per deprecation timeline; refs 79deb6a0716e554cac5308e86f5754f19ad436dc.
2015-09-23Removed support for passing a context to a generic Template.render().Tim Graham
Per deprecation timeline; refs a3e783fe11dd25bbf84bfb6201186566ed473506.
2015-09-23Removed current_app argument to render() and TemplateResponse().Tim Graham
Per deprecation timeline.
2015-06-24Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham
Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
2015-02-24Cleaned up template directory handling in template tests.Preston Timmons
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-02-03Fixed #24149 -- Normalized tuple settings to lists.darkryder
2015-02-03Fixed #24168 -- Allowed selecting a template engine in a few APIs.Aymeric Augustin
Specifically in rendering shortcuts, template responses, and class-based views that return template responses. Also added a test for render_to_response(status=...) which was missing from fdbfc980. Thanks Tim and Carl for the review.
2015-01-12Accounted for multiple template engines in template responses.Aymeric Augustin
2014-12-30Applied ignore_warnings to Django testsClaude Paroz
2014-12-28Deprecated TEMPLATE_DIRS.Aymeric Augustin
2014-12-28Deprecated current_app in TemplateResponse and render(_to_response).Aymeric Augustin
2014-12-03Converted recently refactored templates tests to SimpleTestCase.Ramiro Morales
These test methods don't need DB setup/teardown. Refs #23768 and b872134b.
2014-11-10Fixed #23789 -- TemplateResponse handles context differently from renderLuke Plant
2014-04-26Fix many many typos in comments throughout the codebaseAlex Gaynor
2014-04-06Fixed #21977 -- Deprecated SimpleTestCase.urlsAnubhav Joshi
2014-03-30Corrected many style guide violations that the newest version of flake8 catchesAlex Gaynor
2013-12-23Imported override_settings from its new location.Aymeric Augustin
2013-11-02Fixing E302 ErrorsJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-10-26Fix all violators of E231Alex Gaynor
2013-10-23Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol
2013-10-21Removed some direct settings manipulations in tests; refs #21230.Bouke Haarsma
2013-10-21Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol
2013-10-19Removed unused local variables in tests.Tim Graham
2013-10-18Fixed #21287 -- Fixed E123 pep8 warningsAlasdair Nicol
2013-10-18Fixed #21268 -- Fixed E303 pep8 warningsAlasdair Nicol
2013-07-27Fixed a number of minor misspellings.Julien Phalip
2013-04-12Modified template_tests for unittest2 discovery.Preston Timmons