#14447 closed (fixed)
Auth and Sitemap test failures from manage.py test
Reported by: | Gabriel Hurley | Owned by: | Gabriel Hurley |
---|---|---|---|
Component: | Contrib apps | Version: | 1.2 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The contrib.auth
and contrib.sitemap
tests pass perfectly when run from Django's test suite, but they can potentially raise multiple failures depending on a project's settings.
Issues:
contrib.auth
'stestLoginRequired
fails when LOGIN_URL is set to something other than "/login/". (post [13723])contrib.sitemaps
had several dependencies oncontrib.flatpages
(post [13734])contrib.sitemaps
'stest_generic_sitemap
fails when a fixture loads in extraUser
objects. (post [13676])
The attached patches fix all of the above, and still pass the full test suite. One patch for trunk, one patch for 1.2.X.
Please note that issue 3 actually exists in the current 1.2.3 release. The rest have been introduced since then.
Attachments (2)
Change History (5)
by , 14 years ago
Attachment: | fixes_trunk.diff added |
---|
by , 14 years ago
Attachment: | fixes_1.2.X.diff added |
---|
comment:1 by , 14 years ago
Status: | new → assigned |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
(In [14184]) Fixed #14447 -- Modified the auth and sitemaps tests to remove some assumptions about the environment in which the tests are run. Thanks to Gabriel Hurley for the report and patch.