Skip to content

Commit

Permalink
Merge pull request TransformerOptimus#608 from TransformerOptimus/min…
Browse files Browse the repository at this point in the history
…or-fix-tool-manager

Updated external tool download path
  • Loading branch information
I’m authored Jul 3, 2023
2 parents 5244b7d + 57db520 commit e90c57f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion superagi/tool_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def download_and_extract_tools():
tools_config = load_tools_config()

for tool_name, tool_url in tools_config.items():
tool_folder = os.path.join("", "tools", tool_name)
tool_folder = os.path.join("superagi", "tools", tool_name)
if not os.path.exists(tool_folder):
os.makedirs(tool_folder)
download_tool(tool_url, tool_folder)
Expand Down
4 changes: 2 additions & 2 deletions tests/unit_tests/test_tool_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ def test_download_and_extract_tools(mock_load_tools_config, mock_download_tool):
download_and_extract_tools()

mock_load_tools_config.assert_called_once()
mock_download_tool.assert_any_call('url1', 'tools/tool1')
mock_download_tool.assert_any_call('url2', 'tools/tool2')
mock_download_tool.assert_any_call('url1', os.path.join('superagi', 'tools', 'tool1'))
mock_download_tool.assert_any_call('url2', os.path.join('superagi', 'tools', 'tool2'))

0 comments on commit e90c57f

Please sign in to comment.