From 785cc71d5b3300e2702b0b2fc7316e58ca70b563 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Mon, 17 Aug 2015 13:45:07 -0400 Subject: Refs #22384 -- Removed the ability to reverse URLs by dotted path per deprecation timeline. --- tests/sitemaps_tests/test_https.py | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'tests/sitemaps_tests/test_https.py') diff --git a/tests/sitemaps_tests/test_https.py b/tests/sitemaps_tests/test_https.py index b3bcdc172b..3b68baac43 100644 --- a/tests/sitemaps_tests/test_https.py +++ b/tests/sitemaps_tests/test_https.py @@ -2,8 +2,7 @@ from __future__ import unicode_literals from datetime import date -from django.test import ignore_warnings, override_settings -from django.utils.deprecation import RemovedInDjango110Warning +from django.test import override_settings from .base import SitemapTestsBase @@ -12,15 +11,8 @@ from .base import SitemapTestsBase class HTTPSSitemapTests(SitemapTestsBase): protocol = 'https' - @ignore_warnings(category=RemovedInDjango110Warning) def test_secure_sitemap_index(self): "A secure sitemap index can be rendered" - # The URL for views.sitemap in tests/urls/https.py has been updated - # with a name but since reversing by Python path is tried first - # before reversing by name and works since we're giving - # name='django.contrib.sitemaps.views.sitemap', we need to silence - # the erroneous warning until reversing by dotted path is removed. - # The test will work without modification when it's removed. response = self.client.get('/secure/index.xml') expected_content = """ @@ -44,15 +36,8 @@ class HTTPSSitemapTests(SitemapTestsBase): class HTTPSDetectionSitemapTests(SitemapTestsBase): extra = {'wsgi.url_scheme': 'https'} - @ignore_warnings(category=RemovedInDjango110Warning) def test_sitemap_index_with_https_request(self): "A sitemap index requested in HTTPS is rendered with HTTPS links" - # The URL for views.sitemap in tests/urls/https.py has been updated - # with a name but since reversing by Python path is tried first - # before reversing by name and works since we're giving - # name='django.contrib.sitemaps.views.sitemap', we need to silence - # the erroneous warning until reversing by dotted path is removed. - # The test will work without modification when it's removed. response = self.client.get('/simple/index.xml', **self.extra) expected_content = """ -- cgit v1.3