feat(design): 彻底去除全站AI味:排版全面升级为大厂左对齐架构,文案全量替换为实务工程语言
这个提交包含在:
@@ -7,8 +7,11 @@
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
if BASE_DIR not in sys.path:
|
||||
sys.path.insert(0, BASE_DIR)
|
||||
|
||||
class TestResult:
|
||||
def __init__(self, name):
|
||||
@@ -213,14 +216,25 @@ def test_contact_page():
|
||||
|
||||
return res.summary()
|
||||
|
||||
def test_no_ai_flavor_suite():
|
||||
res = TestResult("去AI味专项测试 (NoAiFlavor)")
|
||||
from tests.test_no_ai_flavor import TestNoAiFlavor
|
||||
suite = unittest.TestLoader().loadTestsFromTestCase(TestNoAiFlavor)
|
||||
runner = unittest.TextTestRunner(verbosity=0)
|
||||
test_result = runner.run(suite)
|
||||
res.assert_true(test_result.wasSuccessful(), f"去AI味全量断言通过 (共 {test_result.testsRun} 项)")
|
||||
return res.summary()
|
||||
|
||||
def main():
|
||||
import unittest
|
||||
results = [
|
||||
test_cases_page(),
|
||||
test_services_page(),
|
||||
test_products_page(),
|
||||
test_nav_megamenu(),
|
||||
test_about_page(),
|
||||
test_contact_page()
|
||||
test_contact_page(),
|
||||
test_no_ai_flavor_suite()
|
||||
]
|
||||
sys.exit(0 if all(results) else 1)
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户