[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
1e58c3707d
commit
6618213da5
1 changed files with 2 additions and 6 deletions
|
|
@ -109,15 +109,11 @@ def test_array_of_objects_is_normalised():
|
|||
"<|tool_call>call:batch{items:[{path:a,mode:r},{path:b,mode:w}]}<tool_call|>"
|
||||
)
|
||||
assert len(calls) == 1, calls
|
||||
assert _args(calls[0]) == {
|
||||
"items": [{"path": "a", "mode": "r"}, {"path": "b", "mode": "w"}]
|
||||
}
|
||||
assert _args(calls[0]) == {"items": [{"path": "a", "mode": "r"}, {"path": "b", "mode": "w"}]}
|
||||
|
||||
|
||||
def test_nested_array_elements_are_normalised():
|
||||
calls = parse_tool_calls_from_text(
|
||||
"<|tool_call>call:grid{cells:[[a,b],[c,d]]}<tool_call|>"
|
||||
)
|
||||
calls = parse_tool_calls_from_text("<|tool_call>call:grid{cells:[[a,b],[c,d]]}<tool_call|>")
|
||||
assert _args(calls[0]) == {"cells": [["a", "b"], ["c", "d"]]}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue