Expand Seg task coverage and coverage dashboard
This commit is contained in:
@@ -8,7 +8,8 @@ def test_evaluation_agent_returns_checks():
|
||||
assert result["checks"]
|
||||
|
||||
|
||||
def test_validation_agent_lightweight():
|
||||
def test_validation_agent_lightweight(monkeypatch):
|
||||
monkeypatch.setenv("SEG_VALIDATE_LIVE", "0")
|
||||
result = validate_project(run_build=False)
|
||||
assert result["agent"] == "validation_agent"
|
||||
assert any(item["name"] == "catalog_has_yolo_heatmap" for item in result["checks"])
|
||||
|
||||
8
backend/tests/test_coverage.py
Normal file
8
backend/tests/test_coverage.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from app.coverage import get_coverage_report
|
||||
|
||||
|
||||
def test_coverage_report_maps_user_scripts_and_builds_tasks():
|
||||
report = get_coverage_report()
|
||||
assert report["mapped_user_scripts"] == report["user_scripts_total"]
|
||||
assert report["unmapped_user_scripts"] == []
|
||||
assert report["task_build_passed"] is True
|
||||
Reference in New Issue
Block a user