From 5733eb06f55abd4ecb8504e634c1d30c9c0998fe Mon Sep 17 00:00:00 2001 From: Ariel Frischer Date: Thu, 13 Feb 2025 19:14:06 -0800 Subject: [PATCH] fix(test_fallback_handler.py): update lambda function to accept default argument for args to prevent potential errors during invocation --- tests/ra_aid/test_fallback_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ra_aid/test_fallback_handler.py b/tests/ra_aid/test_fallback_handler.py index 1a87608..1558498 100644 --- a/tests/ra_aid/test_fallback_handler.py +++ b/tests/ra_aid/test_fallback_handler.py @@ -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", }, ) )