mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #20919 -- Extended assertRedirects to be able to avoid fetching redirect's response.
Thanks mjtamlyn for the suggestion.
This commit is contained in:
committed by
Tim Graham
parent
79ccd1a101
commit
4840fd9cbc
@@ -293,6 +293,11 @@ Tests
|
||||
:attr:`~django.test.runner.DiscoverRunner.test_runner`, which facilitate
|
||||
overriding the way tests are collected and run.
|
||||
|
||||
* The ``fetch_redirect_response`` argument was added to
|
||||
:meth:`~django.test.SimpleTestCase.assertRedirects`. Since the test
|
||||
client can't fetch externals URLs, this allows you to use ``assertRedirects``
|
||||
with redirects that aren't part of your Django app.
|
||||
|
||||
Backwards incompatible changes in 1.7
|
||||
=====================================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user