fix(test_fallback_handler.py): update lambda function to accept default argument for args to prevent potential errors during invocation
This commit is contained in:
parent
cc1945facd
commit
5733eb06f5
|
|
@ -190,7 +190,7 @@ class TestFallbackHandler(unittest.TestCase):
|
|||
(),
|
||||
{
|
||||
"func": type("DummyToolFunc", (), {"__name__": "dummy_tool"})(),
|
||||
"invoke": lambda self, args: "tool_result",
|
||||
"invoke": lambda self, args=None: "tool_result",
|
||||
},
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue