Spaces:
Running
Running
Jeremiah Lowin commited on
Commit ·
f9dd440
1
Parent(s): 860ca49
Fix static typing
Browse files
tests/tools/test_tool_transform.py
CHANGED
|
@@ -383,6 +383,7 @@ async def test_forward_raw_outside_context_raises_error():
|
|
| 383 |
):
|
| 384 |
await forward_raw(new_x=1, old_y=2)
|
| 385 |
|
|
|
|
| 386 |
def test_transform_args_with_parent_defaults():
|
| 387 |
"""Test that transform_args with parent defaults works."""
|
| 388 |
|
|
@@ -394,9 +395,7 @@ def test_transform_args_with_parent_defaults():
|
|
| 394 |
|
| 395 |
tool = Tool.from_function(parent_tool)
|
| 396 |
|
| 397 |
-
new_tool = Tool.from_tool(
|
| 398 |
-
tool
|
| 399 |
-
)
|
| 400 |
|
| 401 |
assert new_tool.parameters["$defs"] == tool.parameters["$defs"]
|
| 402 |
|
|
|
|
| 383 |
):
|
| 384 |
await forward_raw(new_x=1, old_y=2)
|
| 385 |
|
| 386 |
+
|
| 387 |
def test_transform_args_with_parent_defaults():
|
| 388 |
"""Test that transform_args with parent defaults works."""
|
| 389 |
|
|
|
|
| 395 |
|
| 396 |
tool = Tool.from_function(parent_tool)
|
| 397 |
|
| 398 |
+
new_tool = Tool.from_tool(tool)
|
|
|
|
|
|
|
| 399 |
|
| 400 |
assert new_tool.parameters["$defs"] == tool.parameters["$defs"]
|
| 401 |
|