Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed May 16, 2024
1 parent 4fa9ef1 commit 4453074
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test_communities.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ test_that("communities are retrieved",{
test_that("community is retrieved by id",{
zenodo <- ZenodoManager$new(logger = "INFO")
zen_community <- zenodo$getCommunityById("fisheries")
expect_equal(zen_community$id, "fisheries")
expect_equal(zen_community$title, "Fisheries and aquaculture")
expect_equal(zen_community$slug, "fisheries")
expect_equal(zen_community$metadata$title, "Fisheries and aquaculture")
Sys.sleep(2)
})
4 changes: 2 additions & 2 deletions tests/testthat/test_funders.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ test_that("funders are retrieved",{

test_that("funder is retrieved by id",{
zenodo <- ZenodoManager$new(logger = "INFO")
zen_funder <- zenodo$getFunderById("10.13039/100000863")
expect_equal(zen_funder$metadata$doi, "10.13039/100000863")
zen_funder <- zenodo$getFunderById("0553w5c95")
expect_equal(zen_funder$identifiers[[1]]$identifier, "0553w5c95")
Sys.sleep(2)
})

0 comments on commit 4453074

Please sign in to comment.