From cd2a269503b0f7296836871b9d221eb13fc573ce Mon Sep 17 00:00:00 2001 From: "John T. Wodder II" Date: Tue, 31 Aug 2021 17:10:42 -0400 Subject: [PATCH] Use new version of 000027 in tests --- dandi/tests/test_download.py | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/dandi/tests/test_download.py b/dandi/tests/test_download.py index 131f6f50a..af6bd146a 100644 --- a/dandi/tests/test_download.py +++ b/dandi/tests/test_download.py @@ -16,10 +16,7 @@ @pytest.mark.parametrize( "url", [ # Should go through API - pytest.param( - "https://dandiarchive.org/dandiset/000027/0.200721.2222", - marks=pytest.mark.xfail(reason="publish.dandiarchive.org is gone"), - ), + "https://dandiarchive.org/dandiset/000027/0.210831.2033", # Drafts do not go through API ATM, but that should not be visible to user "https://dandiarchive.org/dandiset/000027/draft", ], @@ -54,10 +51,7 @@ def test_download_000027(url, tmpdir): @pytest.mark.parametrize( "url", [ # Should go through API - pytest.param( - "https://dandiarchive.org/dandiset/000027/0.200721.2222", - marks=pytest.mark.xfail(reason="publish.dandiarchive.org is gone"), - ), + "https://dandiarchive.org/dandiset/000027/0.210831.2033", # Drafts do not go through API ATM, but that should not be visible to user "https://dandiarchive.org/dandiset/000027/draft", ], @@ -73,10 +67,7 @@ def test_download_000027_metadata_only(url, tmpdir): @pytest.mark.parametrize( "url", [ # Should go through API - pytest.param( - "https://dandiarchive.org/dandiset/000027/0.200721.2222", - marks=pytest.mark.xfail(reason="publish.dandiarchive.org is gone"), - ), + "https://dandiarchive.org/dandiset/000027/0.210831.2033", # Drafts do not go through API ATM, but that should not be visible to user "https://dandiarchive.org/dandiset/000027/draft", ], @@ -90,16 +81,7 @@ def test_download_000027_assets_only(url, tmpdir): @pytest.mark.parametrize("resizer", [lambda sz: 0, lambda sz: sz // 2, lambda sz: sz]) -@pytest.mark.parametrize( - "version", - [ - pytest.param( - "0.200721.2222", - marks=pytest.mark.xfail(reason="publish.dandiarchive.org is gone"), - ), - DRAFT, - ], -) +@pytest.mark.parametrize("version", ["0.210831.2033", DRAFT]) def test_download_000027_resume(tmp_path, resizer, version): from ..support.digests import Digester