fix(qa): 周报正文移除中英文质量统计口径说明
build / build (push) Successful in 1m13s

仅删除周报说明段及模板占位,保留自然月规则、指标数值和来源审计。
历史已保存周报不因模板变更自动改写,保留中英文各六节。
验证:移除说明断言先红后绿,自然月指标/来源及历史证据保留测试通过,完整门禁与原生备份恢复通过。
This commit is contained in:
姚章浩
2026-10-25 17:15:35 +08:00
parent 0f89c82625
commit 226d47a72d
4 changed files with 13 additions and 10 deletions
+6 -1
View File
@@ -21,9 +21,14 @@ func TestWeeklyTemplateCalendarMonthOverridesOnlyNewPrefillNotHistoricalEvidence
}
var meta map[string]any
_ = json.Unmarshal(seed, &meta)
if !strings.Contains(md, "Coverage Rate: 66.67%") || !strings.Contains(md, "Accuracy Rate: 50.00%") || !strings.Contains(md, "质量统计月:2026-09") || meta["quality_source"] != dashboardMonthlySource {
if !strings.Contains(md, "Coverage Rate: 66.67%") || !strings.Contains(md, "Accuracy Rate: 50.00%") || meta["quality_source"] != dashboardMonthlySource {
t.Fatal("new weekly prefill still uses historical/week quality instead of the selected calendar month", md)
}
for _, removed := range []string{"Quality month (Beijing):", "质量统计月:", "Each rate is yes /", "跨月周按周一所在月", "{{QUALITY_PERIOD_"} {
if strings.Contains(md, removed) {
t.Fatalf("weekly report still contains the removed quality-period note: %s", removed)
}
}
if data.ReportedWeeks[0].CoveragePercent != 57.23 {
t.Fatal("historical reported evidence changed")
}