Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed May 16, 2024
1 parent 4453074 commit 93a28ad
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/testthat/test_records.R
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ test_that("create and deposit record",{
expect_equal(length(deposit$metadata$contributors), 3L)

#add files
ZENODO$uploadFile("README.md", record = deposit)
ZENODO$uploadFile("NEWS.md", record = deposit)
writeLines("# README", "my_README.md")
ZENODO$uploadFile("my_README.md", record = deposit)
writeLines("# NEWS", "my_NEWS.md")
ZENODO$uploadFile("my_NEWS.md", record = deposit)
Sys.sleep(5)

#delete record
Expand Down Expand Up @@ -146,8 +148,10 @@ test_that("create, deposit and publish record",{
deposit = ZENODO$depositRecord(deposit)

#add files
ZENODO$uploadFile("README.md", record = deposit)
ZENODO$uploadFile("NEWS.md", record = deposit)
writeLines("# README", "my_README.md")
ZENODO$uploadFile("my_README.md", record = deposit)
writeLines("# NEWS", "my_NEWS.md")
ZENODO$uploadFile("my_NEWS.md", record = deposit)
Sys.sleep(5)

#publish record
Expand Down

0 comments on commit 93a28ad

Please sign in to comment.