Skip to content

Commit

Permalink
Use new version of 000027 in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Aug 31, 2021
1 parent 3341f98 commit cd2a269
Showing 1 changed file with 4 additions and 22 deletions.
26 changes: 4 additions & 22 deletions dandi/tests/test_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
],
Expand Down Expand Up @@ -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",
],
Expand All @@ -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",
],
Expand All @@ -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

Expand Down

0 comments on commit cd2a269

Please sign in to comment.