tests/testthat/test-zenodo_upload.R

test_that("zenodo_upload works", {
  
    files <- sapply(seq_len(3), function(i){
        tmp <- tempfile(fileext = ".txt")
        writeLines(letters, tmp)
        return(tmp)
    })
    testthat::expect_error(
        zout <- zenodo_upload(files=files,
                              title="test_repo")
    )
})
RajLabMSSM/downloadR documentation built on May 12, 2024, 3:22 a.m.