test(ai): align dev smoke counts with governance check

This commit is contained in:
ogt
2026-07-10 18:55:10 +08:00
parent 6b8bd8bb05
commit d6aeb76c4b

View File

@@ -1452,7 +1452,7 @@ def test_collect_ai_automation_smoke_uses_worst_status(monkeypatch):
result = smoke.collect_ai_automation_smoke(record_history=False)
assert result["status"] == "critical"
assert result["summary"] == {"ok": 43, "warning": 1, "critical": 1, "total": 45}
assert result["summary"] == {"ok": 44, "warning": 1, "critical": 1, "total": 46}
def test_pchome_controlled_apply_drift_monitor_reports_verified_zero_drift(monkeypatch):
@@ -4447,7 +4447,7 @@ def test_scheduled_automation_health_summary_reads_history_without_side_effects(
)
assert summary["policy"] == "read_only_ai_automation_scheduled_health_summary"
assert summary["status"] == "ok"
assert summary["summary"]["total"] == 42
assert summary["summary"]["total"] == 43
assert summary["summary"]["primary_human_gate_count"] == 0
assert summary["summary"]["writes_database_count"] == 0
assert pchome_family["status"] == "ok"
@@ -6859,7 +6859,7 @@ def test_surface_html_readback_check_is_part_of_ai_smoke(monkeypatch):
item for item in result["checks"]
if item["name"] == "Sitewide visual QA readback"
)
assert result["summary"]["total"] == 45
assert result["summary"]["total"] == 46
assert surface_check["status"] == "ok"
assert surface_check["details"]["checked_surface_count"] == 10
assert sitewide_check["status"] == "ok"