Skip to content

Commit

Permalink
add more .skip_if_misconfigured calls to tests for CRAN tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LiNk-NY committed Mar 24, 2021
1 parent 7604c81 commit 3750a45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/testthat/test_install.R
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ test_that("install() fails with different version (non-interactive)", {
})

test_that("install() without package names passes ... to install.packages", {
.skip_if_misconfigured()
object <- FALSE
with_mock(
available.packages = function(...) {
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test_repositories.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ test_that("repositories(version = 'devel') works", {
})

test_that("repositories helper replaces correct URL", {
.skip_if_misconfigured()
default_repos <- c(CRAN = "https://cran.rstudio.com")

## https://github.com/Bioconductor/BiocManager/issues/17
Expand Down

0 comments on commit 3750a45

Please sign in to comment.