Skip to content

Commit

Permalink
skip tests that download
Browse files Browse the repository at this point in the history
  • Loading branch information
sbfnk committed Apr 17, 2024
1 parent 6440e29 commit a135ac7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/testthat/test-matrix.r
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ test_that("The weights with threshold", {
test_that("Country names in Zenodo datasets and the wpp package are aligned (e.g. Viet Nam vs. Vietnam)", {
skip_if_offline("zenodo.org")
skip_on_cran()
skip_on_ci()
vietnam1 <- get_survey("https://doi.org/10.5281/zenodo.1289473")
expect_length(suppressWarnings(contact_matrix(vietnam1, symmetric = FALSE)), 2) # no demography data used
expect_length(suppressWarnings(contact_matrix(vietnam1, symmetric = TRUE)), 3) # country is recognized and demography data found
Expand Down Expand Up @@ -546,6 +547,9 @@ test_that("Contact matrices per capita are also generated when bootstrapping", {
})

test_that("passing a DOI for survey is deprecated", {
skip_if_offline("zenodo.org")
skip_on_cran()
skip_on_ci()
lifecycle::expect_deprecated(
contact_matrix(survey = "10.5281/zenodo.1095664") # nolint
)
Expand Down

0 comments on commit a135ac7

Please sign in to comment.