新增征信员工HTML样本并改造Mock解析

This commit is contained in:
wkc
2026-03-23 20:35:52 +08:00
parent 27aab7f9bc
commit 823e9f75a9
1016 changed files with 16400 additions and 9 deletions

View File

@@ -87,4 +87,22 @@ def sample_inner_flow_request():
@pytest.fixture
def sample_credit_html_file():
"""示例征信 HTML 文件。"""
return ("credit.html", b"<html></html>", "text/html")
html = """
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="ccdi-staff-name" content="测试员工" />
<meta name="ccdi-staff-id-card" content="320101199001010030" />
<title>征信解析员工样本</title>
</head>
<body>
<main>
<h1>征信解析员工样本</h1>
<p>姓名:测试员工</p>
<p>身份证号320101199001010030</p>
</main>
</body>
</html>
"""
return ("credit.html", html.encode("utf-8"), "text/html")