Skip to content

Commit

Permalink
Update for smaller result set
Browse files Browse the repository at this point in the history
  • Loading branch information
arvi1000 committed Jul 1, 2024
1 parent 8ec3dc2 commit 57f7c63
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/testthat/test_epmc_db.r
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ context("testing epmc_db")

test_that("epmc_db returns", {
skip_on_cran()
a <- epmc_db("12368864", db = "uniprot", limit = 50)
# as of July 2024, this result only returns 10 results, so limit must
# be <= that
a_limit <- 7
a <- epmc_db("12368864", db = "uniprot", limit = a_limit)
b <- epmc_db("25249410", db = "embl")
c <- epmc_db("14756321", db = "uniprot")
d <- epmc_db("11805837", db = "pride")
Expand Down Expand Up @@ -31,7 +34,7 @@ test_that("epmc_db returns", {



expect_equal(nrow(a), 50)
expect_equal(nrow(a), a_limit)

# fails correctly
expect_error(epmc_db("14756321"), "Please restrict reponse to a database")
Expand Down

0 comments on commit 57f7c63

Please sign in to comment.