diff --git a/addons/official/view/web/official_common/pc/footer.html b/addons/official/view/web/official_common/pc/footer.html index 5a86d3f..7f3720f 100644 --- a/addons/official/view/web/official_common/pc/footer.html +++ b/addons/official/view/web/official_common/pc/footer.html @@ -64,15 +64,12 @@ -
diff --git a/tests/test_natural_copywriting.py b/tests/test_natural_copywriting.py index fca5779..f0fab19 100644 --- a/tests/test_natural_copywriting.py +++ b/tests/test_natural_copywriting.py @@ -33,6 +33,10 @@ class TestNaturalCopywriting(unittest.TestCase): def test_forbid_ai_buzzwords_and_translationese(self): """严格禁止典型 AI 假大空口号、翻译腔与泛化套话""" + self.footer_path = os.path.join(ROOT_DIR, 'addons/official/view/web/official_common/pc/footer.html') + with open(self.footer_path, 'r', encoding='utf-8') as f: + self.footer_html = f.read() + ai_buzzwords = [ '准备好与资深技术架构师展开深度研讨了吗', # 翻译腔 '认知智能化”跃迁', # 虚浮AI词 @@ -40,7 +44,9 @@ class TestNaturalCopywriting(unittest.TestCase): '开启确定性数字化未来', # 泛化套话 '让您的企业也拥有经得起考验的', # AI祈使句 '开启您的企业数字化与智能化升级项目', # 泛化套话 - '开启确定性数字化技术合作' # 虚词 + '开启确定性数字化技术合作', # 虚词 + '严谨商务 · 现代中式 · 高级感专业软件服务', # 泄露的设计Prompt + '现代中式 · 高级感' ] all_html = ( self.index_html + "\n" + @@ -48,10 +54,11 @@ class TestNaturalCopywriting(unittest.TestCase): self.products_html + "\n" + self.cases_html + "\n" + self.about_html + "\n" + - self.contact_html + self.contact_html + "\n" + + self.footer_html ) for buzzword in ai_buzzwords: - self.assertNotIn(buzzword, all_html, f"全站必须彻底剔除 AI 通用套话/翻译腔: '{buzzword}'") + self.assertNotIn(buzzword, all_html, f"全站必须彻底剔除 AI 通用套话/提示词残留: '{buzzword}'") def test_require_pragmatic_engineering_copy(self): """必须包含具体务实的工程化、场景化语言"""