Skip to content

Commit

Permalink
more detailed test failure message
Browse files Browse the repository at this point in the history
  • Loading branch information
vsbuffalo committed Aug 25, 2023
1 parent 0d4c822 commit 4be0e12
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/lib/api/zenodo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,10 @@ impl ZenodoAPI {
self.bucket_url = info.links.bucket;
Ok(())
}

pub async fn file_exists(&self) -> Result<bool> {
Ok(true)
}

#[allow(unused_variables)]
pub async fn upload(&self, data_file: &DataFile, path_context: &Path, overwrite: bool) -> Result<()> {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ mod tests {

let dir = "data/supplement".to_string();
let result = FigShareAPI::new("Test remote", None);
assert!(result.is_ok(), "FigShareAPI::new() resulted in error!");
assert!(result.is_ok(), "FigShareAPI::new() resulted in error: {:?}", result);
let figshare = result.unwrap();
assert!(figshare.get_base_url() == FIGSHARE_BASE_URL, "FigShareAPI.base_url is not correct!");
dc.register_remote(&dir, Remote::FigShareAPI(figshare)).unwrap();
Expand Down

0 comments on commit 4be0e12

Please sign in to comment.