Merge pull request #7050 from DDSRem-Dev/codex-comment-migration

docs: 统一全项目中文注释和结构化契约说明
This commit is contained in:
DDSRem
2026-10-17 19:26:29 +08:00
committed by GitHub
parent 3c7431b7da
commit 2de976f6b3
2345 changed files with 143990 additions and 61534 deletions

View File

@@ -1,3 +1,7 @@
"""
验证 HTTP 响应编码识别与文本解码。
"""
from types import SimpleNamespace
import pytest
@@ -8,7 +12,9 @@ from app.adapters.network.http import RequestUtils
@pytest.mark.parametrize("performance_mode", [False, True])
def test_html_decoding_handles_incorrect_latin1_declaration(performance_mode):
"""实际 UTF-8 内容不应被错误的 HTML 编码声明解成乱码。"""
"""
实际 UTF-8 内容不应被错误的 HTML 编码声明解成乱码。
"""
html = (
'<html><head><meta charset="iso-8859-1"></head>'
'<body>电影中文标题与高清字幕更新。</body></html>'