python-sphinx-notfound-page/Fix-testcase-rel-content-mismatch-error.patch

62 lines
2.5 KiB
Diff

From 6e76ef19e1771aed34a2f6a25e558ed485153cf1 Mon Sep 17 00:00:00 2001
From: starlet-dx <15929766099@163.com>
Date: Sat, 29 Jul 2023 11:28:15 +0800
Subject: [PATCH 1/1] fix testcase rel content mismatch error
---
tests/test_urls.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/tests/test_urls.py b/tests/test_urls.py
index 59163e0..f836122 100644
--- a/tests/test_urls.py
+++ b/tests/test_urls.py
@@ -63,7 +63,7 @@ def test_default_settings(app, status, warning):
'<title>Page not found &#8212; Python documentation</title>',
# favicon and logo
- '<link rel="shortcut icon" href="/en/latest/_static/favicon.png"/>',
+ '<link rel="icon" href="/en/latest/_static/favicon.png"/>',
'<img class="logo" src="/en/latest/_static/logo.svg" alt="Logo"/>',
# sidebar URLs
@@ -135,7 +135,7 @@ def test_default_language_setting(app, status, warning):
'<li><a href="/ja/latest/index.html">Documentation overview</a><ul>',
# favicon and logo
- '<link rel="shortcut icon" href="/ja/latest/_static/favicon.png"/>',
+ '<link rel="icon" href="/ja/latest/_static/favicon.png"/>',
'<img class="logo" src="/ja/latest/_static/logo.svg" alt="Logo"/>',
# resources
@@ -168,7 +168,7 @@ def test_default_version_setting(app, status, warning):
'<li><a href="/en/customversion/index.html">Documentation overview</a><ul>',
# favicon and logo
- '<link rel="shortcut icon" href="/en/customversion/_static/favicon.png"/>',
+ '<link rel="icon" href="/en/customversion/_static/favicon.png"/>',
'<img class="logo" src="/en/customversion/_static/logo.svg" alt="Logo"/>',
# resources
@@ -230,7 +230,7 @@ def test_urls_prefix_setting(app, status, warning):
'<li><a href="/language/version/index.html">Documentation overview</a><ul>',
# favicon and logo
- '<link rel="shortcut icon" href="/language/version/_static/favicon.png"/>',
+ '<link rel="icon" href="/language/version/_static/favicon.png"/>',
'<img class="logo" src="/language/version/_static/logo.svg" alt="Logo"/>',
# resources
@@ -263,7 +263,7 @@ def test_urls_prefix_setting_none(app, status, warning):
'<li><a href="/index.html">Documentation overview</a><ul>',
# favicon and logo
- '<link rel="shortcut icon" href="/_static/favicon.png"/>',
+ '<link rel="icon" href="/_static/favicon.png"/>',
'<img class="logo" src="/_static/logo.svg" alt="Logo"/>',
# resources
--
2.30.0