Skip to content

Commit

Permalink
Merge pull request #145 from ropensci/less-stringent-tests
Browse files Browse the repository at this point in the history
Less stringent tests
  • Loading branch information
massimoaria committed Aug 8, 2023
2 parents 7a5d127 + 73d7b2a commit 228162b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-oa_fetch.R
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ test_that("oa_fetch can combine (OR) more than 50 DOIs in a filter", {
"data.frame"
)

expect_equal(nrow(many_doi_results), length(valid_dois))
expect_true(nrow(many_doi_results) >= length(valid_dois) - 5)
})

test_that("oa_fetch can combine (OR) more than 50 ORCIDs in a filter", {
Expand Down Expand Up @@ -273,7 +273,7 @@ test_that("oa_fetch can combine (OR) more than 50 ORCIDs in a filter", {

expect_s3_class(many_orcid_results, "data.frame")
# https://orcid.org/0000-0002-4147-892X no longer corresponds to two openalex id
expect_true(nrow(many_orcid_results) >= length(valid_orcids))
expect_true(nrow(many_orcid_results) >= length(valid_orcids) - 5)
})

test_that("oa_random works", {
Expand Down

0 comments on commit 228162b

Please sign in to comment.