1
0
mirror of https://github.com/django/django.git synced 2025-01-13 20:07:13 +00:00
django/django/test
wrwrwr 056a3c6c37 Fixed #23682 -- Enhanced circular redirects detection in tests.
When the test client detects a redirect to a URL seen in the
currently followed chain it will now raise a RedirectCycleError
instead of just returning the first repeated response.

It will also complain when a single chain of redirects is longer
than 20, as this often means a redirect loop with varying URLs,
and even if it's not actually one, such long chains are likely
to be treated as loops by browsers.

Thanks Preston Timmons, Berker Peksag, and Tim Graham for reviews.
2014-11-25 10:12:28 -05:00
..
__init__.py
client.py Fixed #23682 -- Enhanced circular redirects detection in tests. 2014-11-25 10:12:28 -05:00
html.py
runner.py Fixed #23742 -- Added an option to reverse tests order. 2014-11-24 19:24:11 -05:00
signals.py Encapsulated TEMPLATE_DEBUG in Engine. 2014-11-23 11:54:17 +01:00
testcases.py Fixed negligible formatting error. 2014-11-10 21:41:35 +01:00
utils.py Removed override_template_loaders and override_with_test_loader. 2014-11-16 21:40:50 +01:00