Skip to content

Commit

Permalink
remove return value from download_specific_files
Browse files Browse the repository at this point in the history
  • Loading branch information
nina-msft committed Nov 6, 2024
1 parent 2097639 commit 43bf1c3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions pyrit/common/download_hf_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ def download_specific_files(model_id: str, file_patterns: list, token: str, cach
# Download the files
download_files(urls, token, cache_dir)

return urls


def download_files(urls: list, token: str, cache_dir: Path):
headers = {"Authorization": f"Bearer {token}"}
Expand Down
3 changes: 1 addition & 2 deletions tests/test_hf_model_downloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,4 @@ def test_download_specific_files(setup_environment):

with patch("os.makedirs"):
with patch("pyrit.common.download_hf_model.download_files"):
urls = download_specific_files(MODEL_ID, FILE_PATTERNS, token, Path(""))
assert urls
download_specific_files(MODEL_ID, FILE_PATTERNS, token, Path(""))

0 comments on commit 43bf1c3

Please sign in to comment.