Skip to content

Build and run agents you can see, understand and trust.

fix(tests): import patch in grep tool tests (#3954)

qbcf07e98a649b2
diff --git a/tests/builtin_grep_test.py b/tests/builtin_grep_test.py
index b9b0eb91c..388040e3d 100644
--- a/tests/builtin_grep_test.py
+++ b/tests/builtin_grep_test.py
@@ -4,6 +4,7 @@ import os
import subprocess
import tempfile
from unittest.async_case import IsolatedAsyncioTestCase
+from unittest.mock import patch
from agentscope.message import ToolResultState
from agentscope.tool import Edit, Grep, LocalBackend