mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-18 14:34:23 +01:00
Make agbenchmark a proxy of the evaluated agent (#5279)
Make agbenchmark a Proxy of the evaluated agent Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
This commit is contained in:
@@ -255,7 +255,13 @@ def pytest_runtest_makereport(item: Any, call: Any) -> None:
|
||||
|
||||
if call.when == "call":
|
||||
answers = getattr(item, "answers", None)
|
||||
generate_single_call_report(item, call, challenge_data, answers)
|
||||
challenge_location: str = getattr(item.cls, "CHALLENGE_LOCATION", "")
|
||||
test_name = item.nodeid.split("::")[1]
|
||||
item.test_name = test_name
|
||||
|
||||
generate_single_call_report(
|
||||
item, call, challenge_data, answers, challenge_location, test_name
|
||||
)
|
||||
|
||||
if call.when == "teardown":
|
||||
finalize_reports(item, challenge_data)
|
||||
|
||||
Reference in New Issue
Block a user