#14990 closed (fixed)
Custom sitemap unittests failing for contrib.sitemaps in 1.3 Beta 1
Reported by: | eKIK | Owned by: | nobody |
---|---|---|---|
Component: | Contrib apps | Version: | 1.3-beta |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Description
From looking at ticket #14041 I can see that two custom sitemap xml files have been added:
- django/contrib/sitemaps/tests/templates/custom_sitemap_index.xml
- django/contrib/sitemaps/tests/templates/custom_sitemap.xml
The unittests using those xml files are test_simple_sitemap_custom_index and test_simple_custom_sitemap (they live in django/contrib/sitemaps/tests/basic.py).
When downloading Django 1.3 Beta 1 the two unittests are there, but the xml files are not, which gives us two failing tests.
How to reproduce
- Download and install Django 1.3 Beta 1
- Create a project and enable the sitemaps application per instructions given in the documentation
- Run python manage.py test
This should produce the two failing tests.
Proposed fix
Include custom_sitemap_index.xml and custom_sitemap.xml in the Django tarball.
Change History (3)
comment:1 by , 14 years ago
Triage Stage: | Unreviewed → Accepted |
---|---|
Version: | → 1.3-beta |
comment:2 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
(In [15114]) Fixed #14990 -- Added sitemaps tests templates to manifest template.