squid-main-space / tests /test_quality_center_v362.py
Zin299's picture
Deploy v4.6.15 product finish system health
1d46957
Raw
History Blame Contribute Delete
890 Bytes
import pathlib
ROOT = pathlib.Path(__file__).resolve().parents[1]
def test_version_371():
assert (ROOT / "VERSION").read_text(encoding="utf-8").strip() == "4.6.15"
def test_native_health_backend():
text = (ROOT / "routes" / "data_health.py").read_text(encoding="utf-8")
assert '"confidence_score": confidence_score' in text
assert '"issue_details": issue_details' in text
assert "40% metadata completeness + 35% evidence confidence + 25% repository hygiene" in text
def test_native_health_frontend():
text = "\n".join((ROOT / "static" / "js" / name).read_text(encoding="utf-8") for name in ("app.js","data-health.js","project-package.js"))
assert "function openQualityDrilldown" in text
assert "数据可信度" in text
assert "health-detail-btn" in text
assert "质量可信度 · v3.6.1" not in text
assert "quality-trust-card" not in text