Skip to content

Commit

Permalink
fix zenodo url
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamasb committed Dec 26, 2023
1 parent a0782c4 commit cc4364e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import shutil

import pytest
import requests



def is_tool(name: str) -> bool:
"""Checks whether ``name`` is on ``PATH`` and is marked as an executable.
Expand All @@ -31,13 +29,17 @@ def test_commands_found():
"install_pyg_workshop"
), "Workshop PyG installation CLI tool not found"


def test_download_urls():
"""Assert downloads are found."""
from proteinworkshop.scripts.download_processed_data import dataset_fname_map, _ZENODO_RECORD
from proteinworkshop.scripts.download_processed_data import (
_ZENODO_RECORD,
dataset_fname_map,
)

fnames = list(set(dataset_fname_map.values()))

for f in fnames:
url = f"https://zenodo.org/record/{_ZENODO_RECORD}/files/{f}.tar.gz?download=1"
url = f"https://zenodo.org/records/{_ZENODO_RECORD}/files/{f}.tar.gz?download=1"
response = requests.head(url)
assert response.status_code == 200, f"URL {url} not found."

0 comments on commit cc4364e

Please sign in to comment.