🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
chore: add logger.debug().
刘棒棒76c95f8428ac
diff --git a/tests/metagpt/actions/test_make_tools.py b/tests/metagpt/actions/test_make_tools.pyindex 7811cf7ab..264599439 100644--- a/tests/metagpt/actions/test_make_tools.py+++ b/tests/metagpt/actions/test_make_tools.py@@ -2,6 +2,7 @@ import pytestfrom metagpt.actions.execute_code import ExecutePyCodefrom metagpt.actions.make_tools import MakeTools+from metagpt.logs import logger@pytest.mark.asyncio@@ -10,12 +11,12 @@ async def test_make_tools():msgs = [{'role': 'assistant', 'content': code}]mt = MakeTools()tool_code = await mt.run(msgs)- print(tool_code)+ logger.debug(tool_code)ep = ExecutePyCode()tool_code = "!pip install yfinance\n" + tool_coderesult, res_type = await ep.run(tool_code)assert res_type is True- print(result)+ logger.debug(result)@pytest.mark.asyncio@@ -26,12 +27,12 @@ async def test_make_tools2():msgs = [{'role': 'assistant', 'content': code}]mt = MakeTools()tool_code = await mt.run(msgs)- print(tool_code)+ logger.debug(tool_code)ep = ExecutePyCode()tool_code = tool_coderesult, res_type = await ep.run(tool_code)assert res_type is True- print(result)+ logger.debug(result)@pytest.mark.asyncio@@ -43,9 +44,9 @@ async def test_make_tools3():msgs = [{'role': 'assistant', 'content': code}]mt = MakeTools()tool_code = await mt.run(msgs)- print(tool_code)+ logger.debug(tool_code)ep = ExecutePyCode()tool_code = tool_coderesult, res_type = await ep.run(tool_code)assert res_type is True- print(result)+ logger.debug(result)