Skip to content

Commit

Permalink
Ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
OliviaLynn committed Apr 10, 2024
1 parent d0a8a1c commit 2fd2f64
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion src/lephare/data_retrieval.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@ def download_all_files(retriever, file_names, ignore_registry=False, retry=MAX_R
download_all_files(retriever, file_names, ignore_registry=ignore_registry, retry=retry - 1)



def _check_downloaded_files(file_names, completed_futures):
"""Check if all files have been downloaded successfully and are not empty.
Expand Down
5 changes: 1 addition & 4 deletions tests/lephare/test_data_retrieval.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,7 @@ def test_download_single_file_ignore_registry(data_registry_file):
with patch("pooch.retrieve", return_value="/path/to/downloaded/file1.txt") as mock_retrieve:
download_file(retriever, file_name, ignore_registry=True)
mock_retrieve.assert_any_call(
url=f"{retriever.base_url}{file_name}",
known_hash=None,
fname=file_name,
path=retriever.path
url=f"{retriever.base_url}{file_name}", known_hash=None, fname=file_name, path=retriever.path
)


Expand Down

0 comments on commit 2fd2f64

Please sign in to comment.