assertRedirects without loading the target page
|Reported by:||mjtamlyn||Owned by:||jcatalan|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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'].
Change History (5)
comment:1 Changed 19 months ago by timo
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted
comment:2 Changed 18 months ago by jcatalan
- Owner changed from nobody to jcatalan
- Status changed from new to assigned