AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
Fix tests not being run (#207)
merwanehamadi80bd0c4260dc
diff --git a/agbenchmark/challenges b/agbenchmark/challengesindex 8153f05f75..4ab7b6cd24 160000--- a/agbenchmark/challenges+++ b/agbenchmark/challenges@@ -1 +1 @@-Subproject commit 8153f05f758d86ddf01fe7d8cb4fb7c53ddc4d72+Subproject commit 4ab7b6cd246570bf25e27a6e997ff31540641f8ddiff --git a/agbenchmark/reports/reports.py b/agbenchmark/reports/reports.pyindex e051c444bd..0a728227e9 100644--- a/agbenchmark/reports/reports.py+++ b/agbenchmark/reports/reports.py@@ -65,7 +65,7 @@ def generate_combined_suite_report("success": False,},}- if scores["scores_obj"][test_name] == 1:+ if scores.get("scores_obj", {}).get(test_name) == 1:# add dependency successful heretest_info_details["metrics"]["success"] = True@@ -95,7 +95,7 @@ def generate_combined_suite_report("task": challenge_data["task"],"category": suite_config.shared_category,"metrics": {- "percentage": scores["percentage"],+ "percentage": scores.get("percentage", 0),"highest_difficulty": str_highest_difficulty,},"tests": tests,@@ -208,7 +208,7 @@ def setup_dummy_dependencies(test_class_instance: Any, test_class: Any) -> None:# Define a dummy test function that does nothingdef setup_dependency_test(self: Any, scores: dict[str, Any]) -> None:scores = self.get_dummy_scores(test_name, scores)- assert scores == 1+ assert 1 == 1return setup_dependency_testdiff --git a/agbenchmark/utils/challenge.py b/agbenchmark/utils/challenge.pyindex d23d3ec269..e984d040f9 100644--- a/agbenchmark/utils/challenge.py+++ b/agbenchmark/utils/challenge.py@@ -219,7 +219,7 @@ ANSWER:return scores_datadef get_dummy_scores(self, test_name: str, scores: dict[str, Any]) -> int | None:- if scores["scores_obj"][test_name] == 1:+ if scores.get("scores_obj", {}).get(test_name) == 1:return 1return Nonediff --git a/agent/beebot b/agent/beebotindex 054f5e0718..b7ff4d008f 160000--- a/agent/beebot+++ b/agent/beebot@@ -1 +1 @@-Subproject commit 054f5e07187a72943d7f0cc6b2229127aca7083a+Subproject commit b7ff4d008f2433ca1c2ae996af06be3086dafb00diff --git a/agent/smol-developer b/agent/smol-developerindex bec01917a9..a23d01369c 160000--- a/agent/smol-developer+++ b/agent/smol-developer@@ -1 +1 @@-Subproject commit bec01917a9fa6e7bd73e4d14b328dba468cae495+Subproject commit a23d01369cea976e80b7889fdbf1096619471301