summaryrefslogtreecommitdiff
path: root/tests/sitemaps_tests/test_http.py
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2026-01-18 21:26:56 +0100
committerGitHub <noreply@github.com>2026-01-18 21:26:56 +0100
commit6cff02078799b7c683a0d39630d49ab4fe532e7c (patch)
tree9813fc94d952942117b23d61231b9e89a8cab1c2 /tests/sitemaps_tests/test_http.py
parent0d31ca98830542088299d2078402891d08cc3a65 (diff)
Applied Black's 2026 stable style.
https://github.com/psf/black/releases/tag/26.1.0
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 b62060c0c6..be96ff6ba3 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" '