Skip to content

Commit

Permalink
fix tests to be skipped on CRAN
Browse files Browse the repository at this point in the history
  • Loading branch information
rmgpanw committed Jul 19, 2024
1 parent 017438f commit 5304088
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-download_item.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
test_that("Expected errors raised for invalid `release` arg with `download_item()`", {
skip_if_offline()
expect_error(download_item(394, release = 1),
"Argument `release` must be a string")

skip_if_offline()
expect_error(download_item(394, release = "invalid_release_arg"),
"See available releases with `get_item_metadata\\(item = 394, latest_only = FALSE\\)`")
})
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-get_item_metadata.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
test_that("Error raised with invalid `latest_only` arg value for `get_item_metadata()`",
{
skip_if_offline()
expect_error(
get_item_metadata(394, latest_only = "TRUE"),
"Argument `latest_only` must be either `TRUE` or `FALSE`"
Expand Down

0 comments on commit 5304088

Please sign in to comment.