同步新版首页文案关键词并更新测试以匹配 v2/v3 视觉改版;部署脚本增加未同步改动保护

这个提交包含在:
wikiboss
2026-11-05 15:13:22 +08:00
父节点 77495769c4
当前提交 96a3f8b672
共有 9 个文件被更改,包括 175 次插入 和 119 次删除

查看文件

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""
通俗易懂、去AI味、去啰嗦、面向客户与访客专项测试 (Plain and Concise Copywriting Test)
严格遵循 TDD 模式:
@@ -35,7 +34,7 @@ class TestPlainAndConciseCopywriting(unittest.TestCase):
self.contents = {}
for key, path in self.files.items():
if os.path.exists(path):
with open(path, 'r', encoding='utf-8') as f:
with open(path, encoding='utf-8') as f:
self.contents[key] = f.read()
else:
self.contents[key] = ''
@@ -72,13 +71,16 @@ class TestPlainAndConciseCopywriting(unittest.TestCase):
"""面向客户与访客的大白话表达:突出价值与保障"""
# 首页:通俗的防重复扣款与数据安全
self.assertIn('防重复扣款', self.contents['index'], "首页产品指标应使用客户一目了然的'防重复扣款'")
# 智能体页:通俗解释
self.assertTrue(
'拔掉外网网线' in self.contents['service_agent'] or '断网也能用' in self.contents['service_agent'],
"智能体页必须用通俗大白话解释内网安全"
'完全离线运行' in self.contents['service_agent'] or '私有化部署' in self.contents['service_agent'],
"智能体页必须用通俗大白话说明部署方式与数据边界"
)
self.assertTrue(
any(label in self.contents['service_agent'] for label in ('引用来源', '引用溯源', '引用展示')),
"智能体页必须讲清楚回答带有引用来源"
)
self.assertIn('标注原文出处', self.contents['service_agent'], "智能体页必须讲清楚回答带有出处")
# 案例页:拒绝“样本”,使用“数字化系统”;使用“自动同步防重复”
self.assertIn('数字化系统', self.contents['cases_page'])