1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #21341 -- Eased https requests with the test client

All request methods of ``django.test.client.Client`` receive a ``secure``
argument that defaults to ``False`` indicating whether or not to make the
request through https.
Thanks Aymeric Augustin for the review.
This commit is contained in:
Unai Zalakain
2013-10-28 15:00:54 +01:00
committed by Claude Paroz
parent 19256f300e
commit 99b681e227
5 changed files with 89 additions and 45 deletions

View File

@@ -444,6 +444,10 @@ Tests
client can't fetch externals URLs, this allows you to use ``assertRedirects``
with redirects that aren't part of your Django app.
* The ``secure`` argument was added to all the request methods of
:class:`~django.test.Client`. If ``True``, the request will be made
through HTTPS.
Backwards incompatible changes in 1.7
=====================================