You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f"Test function {test_func.__name__} did not return an EvaluationRow instance. You must return an EvaluationRow instance from your test function decorated with @evaluation_test."
454
+
)
455
+
# TODO: not this simple, only append ones that are not error
456
+
all_results[i].append(result)
457
+
else:
458
+
# Batch mode: call the test function with the full dataset
459
+
results=execute_with_params(
455
460
test_func,
456
-
processed_row=row,
461
+
processed_dataset=processed_dataset,
457
462
evaluation_test_kwargs=kwargs.get("evaluation_test_kwargs") or {},
f"Test function {test_func.__name__} did not return an EvaluationRow instance. You must return an EvaluationRow instance from your test function decorated with @evaluation_test."
462
467
)
463
-
all_results[i].append(result)
464
-
else:
465
-
# Batch mode: call the test function with the full dataset
466
-
results=execute_with_params(
467
-
test_func,
468
-
processed_dataset=processed_dataset,
469
-
evaluation_test_kwargs=kwargs.get("evaluation_test_kwargs") or {},
470
-
)
471
-
ifresultsisNone:
472
-
raiseValueError(
473
-
f"Test function {test_func.__name__} did not return an EvaluationRow instance. You must return an EvaluationRow instance from your test function decorated with @evaluation_test."
474
-
)
475
-
ifnotisinstance(results, list):
476
-
raiseValueError(
477
-
f"Test function {test_func.__name__} did not return a list of EvaluationRow instances. You must return a list of EvaluationRow instances from your test function decorated with @evaluation_test."
478
-
)
479
-
ifnotresults:
480
-
raiseValueError(
481
-
f"Test function {test_func.__name__} returned an empty list. You must return a non-empty list of EvaluationRow instances from your test function decorated with @evaluation_test."
f"Test function {test_func.__name__} returned a list containing non-EvaluationRow instances. You must return a list of EvaluationRow instances from your test function decorated with @evaluation_test."
468
+
ifnotisinstance(results, list):
469
+
raiseValueError(
470
+
f"Test function {test_func.__name__} did not return a list of EvaluationRow instances. You must return a list of EvaluationRow instances from your test function decorated with @evaluation_test."
471
+
)
472
+
ifnotresults:
473
+
raiseValueError(
474
+
f"Test function {test_func.__name__} returned an empty list. You must return a non-empty list of EvaluationRow instances from your test function decorated with @evaluation_test."
f"Test function {test_func.__name__} returned a list containing non-EvaluationRow instances. You must return a list of EvaluationRow instances from your test function decorated with @evaluation_test."
479
+
)
480
+
# TODO: not this simple, only append ones that are not error
0 commit comments