From 480191244d12fefbf95854b2b117c71ffe44749a Mon Sep 17 00:00:00 2001 From: David Smith Date: Wed, 30 Dec 2020 16:44:53 +0000 Subject: Fixed #25916 -- Added lastmod support to sitemap index view. Co-authored-by: Matthew Downey --- tests/sitemaps_tests/test_https.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 5c3f8894f8..1e8c28d6c3 100644 --- a/tests/sitemaps_tests/test_https.py +++ b/tests/sitemaps_tests/test_https.py @@ -14,9 +14,9 @@ class HTTPSSitemapTests(SitemapTestsBase): response = self.client.get('/secure/index.xml') expected_content = """ -%s/secure/sitemap-simple.xml +%s/secure/sitemap-simple.xml%s -""" % self.base_url +""" % (self.base_url, date.today()) self.assertXMLEqual(response.content.decode(), expected_content) def test_secure_sitemap_section(self): @@ -39,9 +39,9 @@ class HTTPSDetectionSitemapTests(SitemapTestsBase): response = self.client.get('/simple/index.xml', **self.extra) expected_content = """ -%s/simple/sitemap-simple.xml +%s/simple/sitemap-simple.xml%s -""" % self.base_url.replace('http://', 'https://') +""" % (self.base_url.replace('http://', 'https://'), date.today()) self.assertXMLEqual(response.content.decode(), expected_content) def test_sitemap_section_with_https_request(self): -- cgit v1.3