#20919: assertRedirects without loading the target page
-----------------------------------+-----------------------------
     Reporter:  mjtamlyn           |      Owner:  nobody
         Type:  New feature        |     Status:  new
    Component:  Testing framework  |    Version:  master
     Severity:  Normal             |   Keywords:  assertRedirects
 Triage Stage:  Unreviewed         |  Has patch:  0
Easy pickings:  0                  |      UI/UX:  0
-----------------------------------+-----------------------------
 It would be nice to have a version/extension of `assertRedirects` which
 does not require loading the target page with the client. My test suites
 already have tests for the target pages in most cases, and the extra
 overhead of calling and rendering the second page each time seems like
 overkill. The general thing I want to test is "this response redirects to
 the url with name 'foo'" rather than "this response redirects to url /foo
 and it works".

 This would also handle the issue of checking redirects to external sites
 without having to go hunting for `headers['Location']`.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/20919>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.5b25c5f49e4d2047de66c99cb2575d74%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to