Skip to content

Commit

Permalink
Fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
singankit committed Jun 11, 2024
1 parent 417f0df commit 280465b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/promptflow-evals/tests/evals/e2etests/test_evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,10 @@ def test_evaluate_aggregation_with_threadpool(self, data_file, return_json, aggr

result = evaluate(
data=data_file,
evaluators={"answer_length": AnswerLength(
return_json=return_json, aggregate_return_json=aggregate_return_json)
evaluators={
"answer_length": AnswerLength(
return_json=return_json, aggregate_return_json=aggregate_return_json),
"f1_score": F1ScoreEvaluator(),
},
)
assert result is not None
Expand All @@ -417,8 +419,10 @@ def test_evaluate_aggregation(self, data_file, return_json, aggregate_return_jso

result = evaluate(
data=data_file,
evaluators={"answer_length": AnswerLength(
return_json=return_json, aggregate_return_json=aggregate_return_json)
evaluators={
"answer_length": AnswerLength(
return_json=return_json, aggregate_return_json=aggregate_return_json),
"f1_score": F1ScoreEvaluator(),
},
_use_thread_pool=False,
)
Expand Down

0 comments on commit 280465b

Please sign in to comment.