Tighten agent validation gates
This commit is contained in:
@@ -5,13 +5,16 @@ from app.agents.validation_agent import validate_project
|
||||
def test_evaluation_agent_returns_checks():
|
||||
result = evaluate_project()
|
||||
assert result["agent"] == "evaluation_suggestion_agent"
|
||||
assert result["passed"] is True
|
||||
assert result["checks"]
|
||||
assert result["summary"]["passed_checks"] == result["summary"]["total_checks"]
|
||||
checks = {item["name"]: item["passed"] for item in result["checks"]}
|
||||
assert checks["real_workspace_acceptance"] is True
|
||||
|
||||
|
||||
def test_validation_agent_lightweight(monkeypatch):
|
||||
monkeypatch.setenv("SEG_VALIDATE_LIVE", "0")
|
||||
result = validate_project(run_build=False)
|
||||
result = validate_project(run_build=False, run_deep=False)
|
||||
assert result["agent"] == "validation_agent"
|
||||
assert result["passed"] is True
|
||||
assert any(item["name"] == "catalog_has_yolo_heatmap" for item in result["checks"])
|
||||
|
||||
Reference in New Issue
Block a user