#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'stestLoginRequiredfails when LOGIN_URL is set to something other than "/login/". (post [13723])contrib.sitemapshad several dependencies oncontrib.flatpages(post [13734])contrib.sitemaps'stest_generic_sitemapfails when a fixture loads in extraUserobjects. (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 , 15 years ago
| Attachment: | fixes_trunk.diff added |
|---|
by , 15 years ago
| Attachment: | fixes_1.2.X.diff added |
|---|
comment:1 by , 15 years ago
| Status: | new → assigned |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
comment:2 by , 15 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.