| 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 | |