summaryrefslogtreecommitdiff
path: root/django/contrib/sitemaps/tests/basic.py
AgeCommit message (Collapse)Author
2012-01-29Fixed #8995 -- Added support for HTTPS in sitemaps.Aymeric Augustin
Modularized tests and did a bit of cleanup while I was in the area. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17409 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-01-29Fixed #2713 -- Made the name of the sitemap view a parameter of the sitemap ↵Aymeric Augustin
index view, in order to allow decorators. Also cleaned up code in the area and removed redundant comments from the tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17408 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-13Fixed #16906 -- Format datetimes with str/unicode instead of strftime where ↵Aymeric Augustin
possible: it's faster and it works for all dates. Also ensured that datetime_safe is used wherever strftime is called on dates/datetimes that may be before 1900. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16978 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-28Fixed #10907, #14190 and #15829 -- Pass item to sitemaps template to allow ↵Jannis Leidel
further customization like Google News enabled sitemaps. Thanks, manfre and lakinwecker. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16474 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-03Updated test assertions that have been deprecated by the move to unittest2. ↵Russell Keith-Magee
In summary, this means: assert_ -> assertTrue assertEquals -> assertEqual failUnless -> assertTrue For full details, see http://www.voidspace.org.uk/python/articles/unittest2.shtml#deprecations git-svn-id: http://code.djangoproject.com/svn/django/trunk@15728 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-05Fixed #15111 -- Ensured that the auth, contenttypes and sitemaps tests will ↵Russell Keith-Magee
run when the sites app isn't installed. Thanks to Waldemar Kornewald for the report and draft patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15418 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-12Fixed #14041 -- Added ability to override the template of the sitemaps ↵Jannis Leidel
views. Thanks, julien. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14883 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-05Fixed #14833 -- Skip the sitemaps localization test if i18n isn't enabled. ↵Russell Keith-Magee
Thanks to Julien Phalip for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14826 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-12Fixed #14447 -- Modified the auth and sitemaps tests to remove some ↵Russell Keith-Magee
assumptions about the environment in which the tests are run. Thanks to Gabriel Hurley for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14184 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-11Fixed #14433 - replaced a thread-unsafe solution to #10235 introduced in [13980]Luke Plant
This patch also addresses sitemap code found in contrib/gis, which [13980] did not. Thanks to gabrielhurley for the initial patch. Refs #10235, #14386 git-svn-id: http://code.djangoproject.com/svn/django/trunk@14141 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-11Fixed #14279 -- Corrected a typo in the sitemaps tests (didn't affect the ↵Alex Gaynor
passage of the test). Thanks to jamesodo for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14136 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-09Ensure that the sitemaps test deactivates it's locale, so that subsequent ↵Russell Keith-Magee
tests aren't run in French. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14078 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-04Fixed #14386, #8960, #10235, #10909, #10608, #13845, #14377 - standardize ↵Luke Plant
Site/RequestSite usage in various places. Many thanks to gabrielhurley for putting most of this together. Also to bmihelac, arthurk, qingfeng, hvendelbo, petr.pulc@s-cape.cz, Hraban for reports and some initial patches. The patch also contains some whitespace/PEP8 fixes. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13980 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-10Fixed #11358: Don't include private flatpages in sitemap. Thanks dburke and ↵Karen Tracey
mlavin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13734 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-30Fixed #14198 -- Corrected rendering of generic sitemaps when no priority is ↵Russell Keith-Magee
specified. Thanks to palkeo for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13676 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-27Fixed #14164 -- Ensure that sitemap priorities aren't rendered with ↵Russell Keith-Magee
localized numerical formats. Thanks to dokterbob for the report, and vung for the draft patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13644 bcc190cf-cafb-0310-a4f2-bffc1f526a37