Skip to content

Commit

Permalink
Merge pull request #324 from adswa/adjust-testremote
Browse files Browse the repository at this point in the history
test: Adjust testremote for expected failure amount
  • Loading branch information
adswa authored Sep 13, 2024
2 parents bf402b8 + 0cdd897 commit bcf2347
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions datalad_dataverse/tests/test_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from datalad.api import clone

from datalad_next.exceptions import CommandError
from datalad_next.utils import (
on_windows,
rmtree,
Expand Down Expand Up @@ -78,9 +79,13 @@ def test_remote(dataverse_admin_credential_setup,
'drop', '--from', 'mydv', 'somefile.txt',
])
# run git-annex own testsuite
ds.repo.call_annex([
'testremote', '--fast', 'mydv',
])
# since Dataverse version 5.0, "storeKey when already present" will
# fail, as Dataverse forbids replacing files with identical names and
# checksums: https://guides.dataverse.org/en/latest/user/dataset-management.html#duplicate-files
with pytest.raises(CommandError, match='4 out of 125 tests failed'):
ds.repo.call_annex([
'testremote', '--fast', 'mydv',
])


def test_datalad_annex(dataverse_admin_credential_setup,
Expand Down

0 comments on commit bcf2347

Please sign in to comment.