From 3caee2d70470c5a3b92da08039a23057165c501a Mon Sep 17 00:00:00 2001 From: JingWen Fan <106414602+study8677@users.noreply.github.com> Date: Fri, 22 May 2026 13:28:31 +0800 Subject: [PATCH] test: match real index.html (translate="yes") in spa_catchall blog fixtures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #31 tightened the static-copy regex to require translate="yes" so it matches the real
element instead of the bare mention inside the head comment. The two blog-route test fixtures still used the old
form, so the regex stopped matching and the static copy was never injected — the two assertions failed in CI. Update both fixtures to the real format. Co-Authored-By: Claude Opus 4.7 (1M context) --- tests/test_web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_web.py b/tests/test_web.py index a185c22..261422a 100644 --- a/tests/test_web.py +++ b/tests/test_web.py @@ -1892,7 +1892,7 @@ def test_spa_catchall_blog_route_injects_public_metadata(client, tmp_path): -

Home

+

Home

""" @@ -1927,7 +1927,7 @@ def test_spa_catchall_zh_blog_route_injects_localized_metadata(client, tmp_path) -

Home

+

Home

"""