summaryrefslogtreecommitdiff
path: root/django/contrib/sitemaps/tests
AgeCommit message (Collapse)Author
2015-02-11Moved contrib.sitemaps tests out of contrib.Tim Graham
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-01-17Removed contrib.flatpages.FlatPageSitemap per deprecation timeline; refs #23884.Tim Graham
2014-12-30Applied ignore_warnings to Django testsClaude Paroz
2014-12-28Deprecated TEMPLATE_DIRS.Aymeric Augustin
2014-12-15Refs #23884 -- Silenced a deprecation warning in sitemaps tests.Tim Graham
2014-12-15Fixed #23884 -- Moved FlatPageSitemap into django.contrib.flatpages.Berker Peksag
2014-09-27Silenced some deprecation warnings in contrib.sitemaps; refs #22384.Loic Bistuer
2014-09-11Fixed #23403 -- Fixed crash in contrib.sitemaps if lastmod returned a date ↵Tim Graham
rather than datetime. Thanks igorcc for the report.
2014-06-20Fixed test from refs #22782.Tim Graham
2014-06-20Fixed #22782 -- Added i18n attr to Sitemap classLuan Pablo
It makes possible to have your sitemap in multiple languages when using i18n in URLs.
2014-06-03Fixed #22384 -- Deprecated reversing URLs by dotted path.Tim Graham
2014-04-06Fixed #21977 -- Deprecated SimpleTestCase.urlsAnubhav Joshi
2014-04-03Fixed #22218 -- Deprecated django.conf.urls.patterns.Tim Graham
Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
2014-02-01Suppressed the `if Site._meta.installed` pattern.Aymeric Augustin
The purpose of this construct is to test if the django.contrib.sites application is installed. But in Django 1.9 it will be forbidden to import the Site model when the django.contrib.sites application isn't installed. No model besides Site used this pattern. Refs #21719, #21923.
2014-01-06Fixed #21718 -- Renamed has_app to is_installed.Aymeric Augustin
2013-12-24Renamed AppCache to Apps.Aymeric Augustin
Also renamed app_cache to apps and "app cache" to "app registry". Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
2013-12-23Imported override_settings from its new location.Aymeric Augustin
2013-12-23Dropped AppCache._empty, _with_app and _without_app.Aymeric Augustin
It's now easier to achieve the same effect with modify_settings or override_settings.
2013-12-22Moved apps back in the toplevel django namespace.Aymeric Augustin
Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
2013-12-22Stop testing for inclusion in INSTALLED_APPS.Aymeric Augustin
Removed some exception masking in the comments app that was harmful and couldn't be preserved easily.
2013-12-22Removed the app_config.installed flag.Aymeric Augustin
Since applications that aren't installed no longer have an application configuration, it is now always True in practice. Provided an abstraction to temporarily add or remove applications as several tests messed with app_config.installed to achieve this effect. For now this API is _-prefixed because it looks dangerous.
2013-12-17Normalized Model._meta.installed.Aymeric Augustin
Used the information from the app cache instead of creating a duplicate based on INSTALLED_APPS. Model._meta.installed is no longer writable. It was a rather sketchy way to alter private internals anyway.
2013-11-02More attacking E302 violatorsAlex Gaynor
2013-10-23Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol
2013-10-18Fixed #21268 -- Fixed E303 pep8 warningsAlasdair Nicol
2013-09-17Fixed #21112 -- Make sure sitemaps with no lastmod date work correctly.Simon Charette
Thanks to Matthias Kestenholz for the report and patch.
2013-07-31Fixed #20793 -- Added Last-Modified header to sitemaps.Julian Bez
2013-07-01Stopped using django.utils.unittest in the test suite.Aymeric Augustin
Refs #20680.
2013-06-19Removed several unused imports.Aymeric Augustin
2013-05-10Fixed #17365, #17366, #18727 -- Switched to discovery test runner.Carl Meyer
Thanks to Preston Timmons for the bulk of the work on the patch, especially updating Django's own test suite to comply with the requirements of the new runner. Thanks also to Jannis Leidel and Mahdi Yusuf for earlier work on the patch and the discovery runner. Refs #11077, #17032, and #18670.
2013-05-04Fixed #18351 -- Added X-Robots-Tag header to sitemapsClaude Paroz
Thanks Michael Lissner for the report and initial patch, and Tom Mortimer-Jones for working on the patch.
2013-04-02Modified sitemaps to work with unittest2 discovery.Preston Timmons
2013-03-23Fixed #20048, #20060 -- Modified tests for contrib apps sensitive to custom ↵Russell Keith-Magee
User models. Thanks to matiasb for the report of #20060 and the draft patch for #20048.
2012-12-08Fixed #19357 -- Allow non-ASCII chars in filesystem pathsClaude Paroz
Thanks kujiu for the report and Aymeric Augustin for the review.
2012-10-15Made use of assertXMLEqual in sitemaps testsClaude Paroz
2012-10-15Fixed #15753 -- Cleared cache between sitemaps testsClaude Paroz
When caching was activated, test_simple_sitemap would fail because the test result was fetched from cache. Thanks lucho for the initial patch and krzysiumed@gmail.com for the review.
2012-08-14[py3] Fixed sitemaps tests.Aymeric Augustin
2012-08-14[py3] Compared response.content with bytes.Aymeric Augustin
2012-06-30Isolated sitemaps test from ABSOLUTE_URL_OVERRIDESClaude Paroz
Refs #15988.
2012-06-07Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.Claude Paroz
Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
2012-06-02Made sitemaps tests use override_settings. Refs #14478Claude Paroz
2012-03-30Use the class decorator syntax available in Python >= 2.6. Refs #17965.Aymeric Augustin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17829 bcc190cf-cafb-0310-a4f2-bffc1f526a37
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-09-11Fixed #14675 -- Completed removal of `from django.conf.urls.default import ↵Ramiro Morales
*` usage. This applies to both our own [test] code and documentation examples. Also: * Moved the functions and handlers from `django.conf.urls.defaults` up to `django.conf.urls` deprecating the former module. * Added documentation for `handler403`. * Tweaked the URLs topic document a bit. Thanks to pupeno and cdestigter for their great work contributing patches. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16818 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