Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use new published version of 000027 in tests #763

Merged
merged 1 commit into from
Aug 31, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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