Skip to content

Commit 156afec

Browse files
committed
fix ruff checks
1 parent 699073d commit 156afec

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

tests/test_reasoning/test_cot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def test_plan_no_prompt_error(self):
142142
obs = Observation(step=1, self_state={}, local_state={})
143143

144144
with pytest.raises(
145-
ValueError, match="No prompt provided and agent.step_prompt is None"
145+
ValueError, match=r"No prompt provided and agent.step_prompt is None"
146146
):
147147
reasoning.plan(obs=obs)
148148

tests/test_reasoning/test_react.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def test_plan_no_prompt_error(self):
150150
obs = Observation(step=1, self_state={}, local_state={})
151151

152152
with pytest.raises(
153-
ValueError, match="No prompt provided and agent.step_prompt is None"
153+
ValueError, match=r"No prompt provided and agent.step_prompt is None"
154154
):
155155
reasoning.plan(obs=obs)
156156

@@ -200,6 +200,6 @@ def test_aplan_no_prompt_error(self):
200200
obs = Observation(step=1, self_state={}, local_state={})
201201

202202
with pytest.raises(
203-
ValueError, match="No prompt provided and agent.step_prompt is None"
203+
ValueError, match=r"No prompt provided and agent.step_prompt is None"
204204
):
205205
asyncio.run(reasoning.aplan(obs=obs))

tests/test_reasoning/test_rewoo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def test_plan_no_prompt_error(self):
202202
reasoning = ReWOOReasoning(mock_agent)
203203

204204
with pytest.raises(
205-
ValueError, match="No prompt provided and agent.step_prompt is None"
205+
ValueError, match=r"No prompt provided and agent.step_prompt is None"
206206
):
207207
reasoning.plan()
208208

tests/test_tools/test_inbuilt_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def test_speak_to_records_on_recipients(mocker):
9898
r2.memory.add_to_memory.assert_called_once()
9999

100100
# Verify payload structure for one recipient
101-
args, kwargs = r1.memory.add_to_memory.call_args
101+
_, kwargs = r1.memory.add_to_memory.call_args
102102
assert kwargs["type"] == "message"
103103
content = kwargs["content"]
104104
assert content["message"] == message

0 commit comments

Comments
 (0)