Skip to content

Commit 0381ab2

Browse files
author
Dylan Huang
committed
fix input_messages
1 parent 6f69941 commit 0381ab2

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

tests/pytest/test_pytest_async.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ async def test_pytest_async(rows: list[EvaluationRow]) -> list[EvaluationRow]:
2626
@evaluation_test(
2727
input_messages=[
2828
[
29-
Message(role="user", content="What is the capital of France?"),
30-
],
29+
[
30+
Message(role="user", content="What is the capital of France?"),
31+
],
32+
]
3133
],
3234
completion_params=[{"model": "accounts/fireworks/models/kimi-k2-instruct"}],
3335
mode="pointwise",

tests/pytest/test_pytest_mcp_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def read(self, row_id: str | None = None) -> list[EvaluationRow]:
8989
def eval_fn(row: EvaluationRow) -> EvaluationRow:
9090
return row
9191

92-
await eval_fn(input_messages=input_messages[0], completion_params=completion_params_list[0]) # pyright: ignore[reportCallIssue]
92+
await eval_fn(input_messages=input_messages, completion_params=completion_params_list[0]) # pyright: ignore[reportCallIssue]
9393

9494
# ensure that the row has tools that were set during AgentRolloutProcessor
9595
assert len(rollouts) == 1

tests/pytest/test_pytest_propagate_error.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def eval_fn(row: EvaluationRow) -> EvaluationRow:
6060

6161
# Manually invoke all parameter combinations within a single test
6262
for params in completion_params_list:
63-
await eval_fn(input_messages=input_messages[0], completion_params=params) # pyright: ignore[reportCallIssue]
63+
await eval_fn(input_messages=input_messages, completion_params=params) # pyright: ignore[reportCallIssue]
6464

6565
# assert that the status of eval_metadata.status is "error"
6666
assert len(rollouts) == 5

0 commit comments

Comments
 (0)