#26666: assertRedirects gives unhelpful error message expected URL is external
-----------------------------------+--------------------
     Reporter:  inglesp            |      Owner:  nobody
         Type:  Bug                |     Status:  new
    Component:  Testing framework  |    Version:  1.9
     Severity:  Normal             |   Keywords:
 Triage Stage:  Unreviewed         |  Has patch:  0
Easy pickings:  0                  |      UI/UX:  0
-----------------------------------+--------------------
 `assertRedirects` uses the test client and so cannot fetch external URLs.
 When the expected URL is set to an external URL, `assertRedirects` fails
 with something like:

 {{{
 AssertionError: 404 != 200 : Couldn't retrieve redirection page '/some-
 path/': response code was 404 (expected 200)
 }}}

 It would be better if `assertRedirects` could detect that it was being
 used incorrectly, and gave a more helpful error message.

--
Ticket URL: <https://code.djangoproject.com/ticket/26666>
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/050.5c99b7cf705d128693fb58a58717717e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to