Skip to content

Commit

Permalink
Added skip_on_cran
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonfreitas committed Oct 9, 2023
1 parent 0405426 commit 2c52f4f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: rbcb
Type: Package
Title: R Interface to Brazilian Central Bank Web Services
Version: 0.1.12
Version: 0.1.13
Author: Wilson Freitas <wilson.freitas@gmail.com>
Maintainer: Wilson Freitas <wilson.freitas@gmail.com>
Description: The Brazilian Central Bank API delivers many datasets which regard economic
Expand Down
8 changes: 8 additions & 0 deletions tests/testthat/test-utils.R
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
test_that("it should test http download without cache", {
if (!covr::in_covr()) {
skip_on_cran()
skip_if_offline()
}
url <- "https://olinda.bcb.gov.br/olinda/servico/PTAX/versao/v1/odata/Moedas"
op <- options(rbcb_cache = FALSE)
withr::defer(options(op))
expect_silent(http_download("get", url))
})

test_that("it should test http download with cache", {
if (!covr::in_covr()) {
skip_on_cran()
skip_if_offline()
}
url <- "https://olinda.bcb.gov.br/olinda/servico/PTAX/versao/v1/odata/Moedas"
op <- options(rbcb_cache = TRUE)
withr::defer(options(op))
Expand Down

0 comments on commit 2c52f4f

Please sign in to comment.