Skip to content

Commit

Permalink
Changed tools.json key format
Browse files Browse the repository at this point in the history
  • Loading branch information
luciferlinx101 committed Jul 2, 2023
1 parent 09cf340 commit 65f6c89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion superagi/helper/tool_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def extract_repo_name_with_username(repo_link):
# Extract the repository name from the link
# Assuming the GitHub link format: https://github.com/username/repoName
username_repo = repo_link.rsplit('/', 2)[-2:]
user_repo_key = "/".join(username_repo)
user_repo_key = "_".join(username_repo)

return user_repo_key

Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/helper/test_tool_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def test_get_readme_content_from_code_link(mock_requests_get):

def test_extract_repo_name():
repo_link = 'https://github.com/username/repo'
expected_result = 'username/repo'
expected_result = 'username_repo'
assert extract_repo_name_with_username(repo_link) == expected_result


Expand Down

0 comments on commit 65f6c89

Please sign in to comment.