Skip to content

Commit 78a32fd

Browse files
committed
Fix test_from_names_multiple_native comparing a Sequence to a list
native_tool_names returns an immutable tuple; wrap it with list() before comparing, matching the other assertions in the same test module.
1 parent 109ec12 commit 78a32fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ddev/tests/ai/tools/test_registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def test_available_tool_names_includes_web_fetch():
258258
def test_from_names_multiple_native(tmp_path):
259259
registry = from_names(["web_search", "web_fetch"], tmp_path)
260260
assert registry.definitions == []
261-
assert registry.native_tool_names == ["web_search", "web_fetch"]
261+
assert list(registry.native_tool_names) == ["web_search", "web_fetch"]
262262

263263

264264
def test_from_names_native_only(tmp_path):

0 commit comments

Comments
 (0)