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:
Ariel Frischer 2025-02-13 19:14:06 -08:00
parent cc1945facd
commit 5733eb06f5
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ class TestFallbackHandler(unittest.TestCase):
(), (),
{ {
"func": type("DummyToolFunc", (), {"__name__": "dummy_tool"})(), "func": type("DummyToolFunc", (), {"__name__": "dummy_tool"})(),
"invoke": lambda self, args: "tool_result", "invoke": lambda self, args=None: "tool_result",
}, },
) )
) )