Skip to content

Fix(pydataverse tests): Adapt to behavior change in upload file#322

Closed
adswa wants to merge 1 commit intomainfrom
json_str
Closed

Fix(pydataverse tests): Adapt to behavior change in upload file#322
adswa wants to merge 1 commit intomainfrom
json_str

Conversation

@adswa
Copy link
Copy Markdown
Member

@adswa adswa commented Jul 23, 2024

The Backstory is in #320 (comment). A change outside of datalad-dataverse resulted in a 400 bad request whenever pydataverse's upload_file() function was called without passing anything as json_str, and its default value None was used.
In the pydataverse tests we perform a simplistic upload, where this parameter hasn't yet been used. This change adds empty json to make the API call succeed.

The Backstory is in #320 (comment).
A change outside of datalad-dataverse resulted in a 400 bad request whenever
pydataverse's upload_file() function was called without passing anything
as json_str, and its default value None was used.
In the pydataverse tests we perform a simplistic upload, where this parameter .
hasn't yet benn used. This change adds empty json to make the API call succeed.
@adswa
Copy link
Copy Markdown
Member Author

adswa commented Jul 23, 2024

(this change depends on gdcc/pyDataverse#203, and should still leave three tests failing)

@adswa
Copy link
Copy Markdown
Member Author

adswa commented Jul 29, 2024

obsolete with gdcc/pyDataverse#207

@adswa adswa closed this Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant