Skip to content

Commit

Permalink
fix wrong key
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed Jan 15, 2025
1 parent d5d2fcf commit 87986a9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
5 changes: 5 additions & 0 deletions display.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dvcli dataset --help
dvcli collection --help
dvcli file --help
dvcli search --help

7 changes: 7 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from pyDataverse.api import NativeApi
from rich import print

api = NativeApi("https://demo.dataverse.org", "6c0e784a-38cc-42a4-8017-7ec09c3785ff")

dataset = api.get_dataset(identifier="doi:10.70122/FK2/BYBCAB")
print(dataset.json())
4 changes: 3 additions & 1 deletion tests/api/test_edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ def test_edit_dataset_metadata(self):
# Assert
dataset = api.get_dataset(pid)
assert (
dataset.json()["data"]["metadataBlocks"]["citation"]["fields"][0]["value"]
dataset.json()["data"]["latestVersion"]["metadataBlocks"]["citation"][
"fields"
][0]["value"]
== "New Title"
), "Metadata edit failed."
assert response.status_code == 200, "Metadata edit failed."
Expand Down

0 comments on commit 87986a9

Please sign in to comment.