Skip to content

Commit

Permalink
mark github retrieve as xfail
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed May 29, 2024
1 parent 50623ce commit 476ba79
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion medimages4tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def retrieve_from_github(
cache_dir = base_cache_dir / "github"
else:
cache_dir = Path(cache_dir).expanduser()
cache_path = (cache_dir / repo / tag).joinpath(path.split("/"))
cache_path = (cache_dir / repo / tag).joinpath(*path.split("/"))
if cache_path.exists():
return cache_path
if not cache_path.parent.exists():
Expand Down
8 changes: 7 additions & 1 deletion tests/test_github.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import pytest
from medimages4tests.utils import retrieve_from_github
from fileformats.medimage import NiftiGz


@pytest.mark.xfail
def test_github_retrieve():

path = retrieve_from_github(org="nipype", repo="pydra-fsl-testdata", path="melodic_ica")
path = retrieve_from_github(
org="nipype", repo="pydra-fsl-testdata", path="melodic_ica"
)
nifti = NiftiGz(path)

assert nifti.shape == (204, 256, 256)

0 comments on commit 476ba79

Please sign in to comment.