summaryrefslogtreecommitdiff
path: root/tests/sitemaps_tests/test_http.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sitemaps_tests/test_http.py')
-rw-r--r--tests/sitemaps_tests/test_http.py16
1 files changed, 4 insertions, 12 deletions
diff --git a/tests/sitemaps_tests/test_http.py b/tests/sitemaps_tests/test_http.py
index 6ae7e0d7c4..ed23bf7c7c 100644
--- a/tests/sitemaps_tests/test_http.py
+++ b/tests/sitemaps_tests/test_http.py
@@ -51,9 +51,7 @@ class HTTPSitemapTests(SitemapTestsBase):
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap><loc>{0}/simple/sitemap-simple.xml</loc><lastmod>{1}</lastmod></sitemap><sitemap><loc>{0}/simple/sitemap-simple.xml?p=2</loc><lastmod>{1}</lastmod></sitemap>
</sitemapindex>
-""".format(
- self.base_url, date.today()
- )
+""".format(self.base_url, date.today())
self.assertXMLEqual(response.text, expected_content)
@override_settings(
@@ -364,9 +362,7 @@ class HTTPSitemapTests(SitemapTestsBase):
<xhtml:link rel="alternate" hreflang="en" href="{url}/en/i18n/testmodel/{pk}/"/>
<xhtml:link rel="alternate" hreflang="pt" href="{url}/pt/i18n/testmodel/{pk}/"/>
</url>
-""".replace(
- "\n", ""
- )
+""".replace("\n", "")
expected_content = (
f'<?xml version="1.0" encoding="UTF-8"?>\n'
f'<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" '
@@ -394,9 +390,7 @@ class HTTPSitemapTests(SitemapTestsBase):
<xhtml:link rel="alternate" hreflang="en" href="{url}/en/i18n/testmodel/{pk}/"/>
<xhtml:link rel="alternate" hreflang="es" href="{url}/es/i18n/testmodel/{pk}/"/>
</url>
-""".replace(
- "\n", ""
- )
+""".replace("\n", "")
expected_content = (
f'<?xml version="1.0" encoding="UTF-8"?>\n'
f'<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" '
@@ -424,9 +418,7 @@ class HTTPSitemapTests(SitemapTestsBase):
<xhtml:link rel="alternate" hreflang="pt" href="{url}/pt/i18n/testmodel/{pk}/"/>
<xhtml:link rel="alternate" hreflang="x-default" href="{url}/i18n/testmodel/{pk}/"/>
</url>
-""".replace(
- "\n", ""
- )
+""".replace("\n", "")
expected_content = (
f'<?xml version="1.0" encoding="UTF-8"?>\n'
f'<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" '