Skip to content

Commit aa7d7d4

Browse files
committed
fix tool test parsing error
1 parent 097d056 commit aa7d7d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/backends/test_tool_helpers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ def get_weather(location: str) -> int:
5353
assert tools["get_weather"] == get_weather
5454

5555
# Must use `==` for bound methods.
56-
assert tools["tool1"] == ftc.tool1, f"{tools['tool1']} should == {ftc.tool1}"
56+
tool1 = tools['tool1']
57+
assert tool1 == ftc.tool1, f"{tool1} should == {ftc.tool1}"
5758

5859

5960
def test_add_tools_from_model_options_map():

0 commit comments

Comments
 (0)